Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin/connection-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function api_key_input() {
'discourse_connect',
__( 'Found on your forum at ', 'wp-discourse' ) . '<a href="' . esc_url( $discourse_options['url'] ) .
'/admin/api/keys" target="_blank" rel="norefferer noopener">' . esc_url( $discourse_options['url'] ) . '/admin/api/keys</a>. ' .
"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 {
Expand All @@ -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'
)
);
Expand Down
4 changes: 3 additions & 1 deletion lib/discourse-publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions wp-discourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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';
Expand Down