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' ) ); 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; 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';