From b2c0fd327f3a3051f81b7e91a5a0405133695d06 Mon Sep 17 00:00:00 2001
From: John Parris
Date: Wed, 8 Nov 2023 12:47:34 -0500
Subject: [PATCH] Update settings description (#1637)
Improve wp-admin settings page.
Updates description of Secret Key field.
Updates docs links to point to current page URLs.
add changeset
---
.changeset/wet-buttons-love.md | 5 +++++
plugins/faustwp/includes/settings/callbacks.php | 4 ++--
.../includes/settings/views/headless-settings.php | 10 +++++-----
3 files changed, 12 insertions(+), 7 deletions(-)
create mode 100644 .changeset/wet-buttons-love.md
diff --git a/.changeset/wet-buttons-love.md b/.changeset/wet-buttons-love.md
new file mode 100644
index 000000000..033821471
--- /dev/null
+++ b/.changeset/wet-buttons-love.md
@@ -0,0 +1,5 @@
+---
+'@faustwp/wordpress-plugin': patch
+---
+
+Updated the settings page to improve descriptions and documentation links.
diff --git a/plugins/faustwp/includes/settings/callbacks.php b/plugins/faustwp/includes/settings/callbacks.php
index 9dc3f848b..87093c3c8 100644
--- a/plugins/faustwp/includes/settings/callbacks.php
+++ b/plugins/faustwp/includes/settings/callbacks.php
@@ -340,8 +340,8 @@ function confirm_regenerate_key( event ) {
headless post previews.', 'faustwp' ) ),
- 'https://faustjs.org/docs/next/guides/post-page-previews'
+ wp_kses_post( __( 'This key is used to enable headless post previews and make authenticated GraphQL requests for schema generation.', 'faustwp' ) ),
+ 'https://faustjs.org/guide/how-to-setup-post-and-page-previews'
);
?>
diff --git a/plugins/faustwp/includes/settings/views/headless-settings.php b/plugins/faustwp/includes/settings/views/headless-settings.php
index 2c8969189..09610571d 100644
--- a/plugins/faustwp/includes/settings/views/headless-settings.php
+++ b/plugins/faustwp/includes/settings/views/headless-settings.php
@@ -79,11 +79,11 @@
Faust.js Documentation