WP Discourse 1.2.5 Release

AI-generated summary

simon announced the release of WP Discourse plugin version 1.2.5, available on the WordPress plugin repository and GitHub. The update focuses on reorganizing admin code to allow other plugins to extend the system, exemplified by a third-party plugin that adds a [discourse_latest] shortcode. A notable feature allows users to set ‘Max Visible Comments’ to 0, enabling a link to the Discourse forum without embedding comments directly. The plugin also now displays a friendly error message if activated on servers running PHP versions older than 5.4. Additionally, the plugin supports authenticating WordPress users via Discourse, a feature developed by @iamntz.

Regarding compatibility, simon clarified that the plugin does not currently work with standard WordPress.com hosted sites, though it may be possible for WordPress.com VIP sites once the SSO code is separated into a distinct plugin. Initially, simon reported an issue where updating the plugin caused deactivation due to the PHP version check, but after further investigation, it was determined to be a testing error rather than a bug in the update process.

The latest release of the WP Discourse plugin (1.2.5) is available on the WordPress plugin repository or on GitHub.

Most of the changes in this release have to do with reorganizing the admin code to allow other plugins to extend the wp-discourse plugin and use it’s options pages. There is an example of that here: GitHub - scossar/wp-discourse-latest-topics: Adds a 'latest topics' shortcode to the wp-discourse plugin · GitHub. It adds a [discourse_latest] shortcode that displays a list of the latest Discourse topics. Topics can be refreshed when they appear on Discourse with a webhook. See the comments in that plugin if you’re looking for ideas.

One useful change in this release is that you can now set the ‘Max Visible Comments’ to 0. This is useful if you would like to have a link at the bottom of your WordPress post to your Discourse forum, but don’t want to display Discourse comments on WordPress. The text for that link can be set in the ‘Start Discussion’ text setting. I’ll change the copy on the options pages a bit to make that clearer.

Another change is that when the plugin is activated on a server with a php version of less than 5.4, it will now, hopefully, give the user a friendly message that they need to update their php version.

One recent change to the plugin that hasn’t been promoted much yet, is that you can now use Discourse to authenticate users on your WordPress forum. Thanks to @iamntz for doing the work on that!

15 « J'aime »

Is there any way to use this with WordPress.com hosted sites?

No, not now. After a few more changes are made to the plugin, it would be great it people would start asking them for it. Getting it onto regular WordPress.com sites seems like a long shot, but once the SSO code gets moved into a separate plugin, it should be possible to get it onto sites hosted on WordPress.com VIP.

2 « J'aime »

This seems to have caused a problem. When the plugin is updated from a previous version, it’s being deactivated. I’ll fix that right away.

Edit: I’m still confused by what is going on with this on this. It’s not an easy thing to test. I’ll come up with a solution as early as possible tomorrow.

Further Edit: it turns out there isn’t a problem with the update process. I was just doing something dumb in the way I was testing it. :stuck_out_tongue:

1 « J'aime »