From 03c495d591ec440d12190dcd6a1c08c99286567e Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 28 Feb 2022 19:56:10 +0100 Subject: [PATCH 1/3] post_update bugfix (after moving to discourse_request) --- lib/discourse-publish.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/discourse-publish.php b/lib/discourse-publish.php index 00b25b46..46c23473 100644 --- a/lib/discourse-publish.php +++ b/lib/discourse-publish.php @@ -316,7 +316,9 @@ protected function sync_to_discourse_work( $post_id, $title, $raw ) { // The post has already been published. $body = array( 'title' => $title, - 'post[raw]' => $baked, + 'post' => array( + 'raw' => $baked, + ), 'skip_validations' => 'true', ); $path = '/posts/' . $discourse_id; From f31e63bb824ff14dae1c67b44b94e77ef98f0069 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 28 Feb 2022 19:57:54 +0100 Subject: [PATCH 2/3] Update api key copy --- admin/connection-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/connection-settings.php b/admin/connection-settings.php index 2f85c1f5..ad70ebfe 100644 --- a/admin/connection-settings.php +++ b/admin/connection-settings.php @@ -141,7 +141,7 @@ public function api_key_input() { 'discourse_connect', __( 'Found on your forum at ', 'wp-discourse' ) . '' . esc_url( $discourse_options['url'] ) . '/admin/api/keys. ' . - "If you haven't yet created an API key, Click 'New API Key', set User Level to 'Single User', set 'User' to an admin account, select 'Global Key' and click 'Save'. Copy and paste the API key here.", + "If you haven't yet created an API key, Click 'New API Key', set User Level to 'All Users', set 'User' to an admin account, select 'Global Key' and click 'Save'. Copy and paste the API key here.", 'wp-discourse' ); } else { @@ -150,7 +150,7 @@ public function api_key_input() { 'discourse_connect', __( "Found on your forum at /admin/api/keys. - If you haven't yet created an API key, Click 'New API Key', set User Level to 'Single User', set 'User' to an admin account, select 'Global Key' and click 'Save'. Copy and paste the API key here.", + If you haven't yet created an API key, Click 'New API Key', set User Level to 'All Users', set 'User' to an admin account, select 'Global Key' and click 'Save'. Copy and paste the API key here.", 'wp-discourse' ) ); From 835dc840ca0b3699a24ffafbd86d8ceefc917eb5 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 28 Feb 2022 20:12:36 +0100 Subject: [PATCH 3/3] Bump version --- readme.txt | 7 ++++++- wp-discourse.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 2ec0745b..850478ba 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: discourse, forum, comments, sso Requires at least: 4.7 Tested up to: 5.9 Requires PHP: 5.6.0 -Stable tag: 2.4.0 +Stable tag: 2.4.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -123,6 +123,11 @@ To create a coherent top menu, see our tutorial on how to make a [Custom nav hea == Changelog == +#### 2.4.1 02/28/2022 + +- Bugfix "Update Discourse Topic" functionality. +- Update API Key copy. + #### 2.4.0 02/24/2022 - Revert to existing Discourse Username approach. diff --git a/wp-discourse.php b/wp-discourse.php index 7a46a615..d04bbe07 100644 --- a/wp-discourse.php +++ b/wp-discourse.php @@ -2,7 +2,7 @@ /** * Plugin Name: WP-Discourse * Description: Use Discourse as a community engine for your WordPress blog - * Version: 2.4.0 + * Version: 2.4.1 * Author: Discourse * Text Domain: wp-discourse * Domain Path: /languages @@ -34,7 +34,7 @@ define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) ); define( 'MIN_WP_VERSION', '4.7' ); define( 'MIN_PHP_VERSION', '5.6.0' ); -define( 'WPDISCOURSE_VERSION', '2.4.0' ); +define( 'WPDISCOURSE_VERSION', '2.4.1' ); require_once WPDISCOURSE_PATH . 'lib/plugin-utilities.php'; require_once WPDISCOURSE_PATH . 'lib/template-functions.php';