mirror of
https://github.com/discourse/wp-discourse.git
synced 2025-08-17 18:11:19 +08:00
Two Five Eight (#546)
* Update dependencies * Add wpdc_publish_featured_link filter * Bump version and add release notes
This commit is contained in:
parent
22ee91dfb5
commit
87a14f9327
14 changed files with 11043 additions and 1460 deletions
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('react-jsx-runtime'), 'version' => 'a53994925f492a194cb4');
|
||||
<?php return array('dependencies' => array('react-jsx-runtime'), 'version' => 'c581dc51ecf5b5866bd8');
|
||||
|
|
File diff suppressed because one or more lines are too long
1
admin/discourse-sidebar/build/index.js.map
Normal file
1
admin/discourse-sidebar/build/index.js.map
Normal file
File diff suppressed because one or more lines are too long
1342
admin/discourse-sidebar/package-lock.json
generated
1342
admin/discourse-sidebar/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,7 @@
|
|||
"author": "Discourse",
|
||||
"license": "GPL",
|
||||
"devDependencies": {
|
||||
"@wordpress/scripts": "^30.12.0",
|
||||
"nodemon": "3.1.9"
|
||||
"@wordpress/scripts": "^30.16.0",
|
||||
"nodemon": "3.1.10"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '857b20870324aa144770');
|
||||
<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '6382c8aae0ce458fd92b');
|
||||
|
|
File diff suppressed because one or more lines are too long
1
blocks/comments/build/index.js.map
Normal file
1
blocks/comments/build/index.js.map
Normal file
File diff suppressed because one or more lines are too long
1559
blocks/comments/package-lock.json
generated
1559
blocks/comments/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -14,12 +14,12 @@
|
|||
"author": "Discourse",
|
||||
"license": "GPL",
|
||||
"devDependencies": {
|
||||
"@wordpress/scripts": "^30.12.0",
|
||||
"nodemon": "3.1.9"
|
||||
"@wordpress/scripts": "^30.16.0",
|
||||
"nodemon": "3.1.10"
|
||||
},
|
||||
"dependencies": {
|
||||
"date-fns": "^2.29.3",
|
||||
"html-react-parser": "^3.0.4",
|
||||
"react-inlinesvg": "^3.0.1"
|
||||
"date-fns": "^4.1.0",
|
||||
"html-react-parser": "^5.2.5",
|
||||
"react-inlinesvg": "^4.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -335,6 +335,11 @@ class DiscoursePublish extends DiscourseBase {
|
|||
$tags = array();
|
||||
}
|
||||
|
||||
$featured_link = null;
|
||||
if ( $add_featured_link ) {
|
||||
$featured_link = apply_filters( 'wpdc_publish_featured_link', $permalink, $post_id );
|
||||
}
|
||||
|
||||
$remote_post_type = '';
|
||||
|
||||
// The post hasn't been published to Discourse yet.
|
||||
|
@ -349,7 +354,7 @@ class DiscoursePublish extends DiscourseBase {
|
|||
|
||||
$body = array(
|
||||
'embed_url' => $permalink,
|
||||
'featured_link' => $add_featured_link ? $permalink : null,
|
||||
'featured_link' => $featured_link,
|
||||
'title' => $title,
|
||||
'raw' => $baked,
|
||||
'category' => $category,
|
||||
|
@ -472,9 +477,9 @@ class DiscoursePublish extends DiscourseBase {
|
|||
}
|
||||
|
||||
// Update the topic's featured_link property.
|
||||
if ( ! empty( $options['add-featured-link'] ) ) {
|
||||
if ( $add_featured_link ) {
|
||||
$body = array(
|
||||
'featured_link' => $permalink,
|
||||
'featured_link' => $featured_link,
|
||||
);
|
||||
$remote_post_options = array(
|
||||
'method' => 'PUT',
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -5,6 +5,7 @@
|
|||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wp-discourse",
|
||||
"version": "1.0.0",
|
||||
"license": "GPL V2",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -4,7 +4,7 @@ Tags: discourse, forum, comments, sso
|
|||
Requires at least: 5.1
|
||||
Tested up to: 6.7.2
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 2.5.7
|
||||
Stable tag: 2.5.8
|
||||
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.5.8 23/05/2025
|
||||
|
||||
- Sidebar and comment block JS upgrades.
|
||||
- Add wpdc_publish_featured_link filter.
|
||||
|
||||
#### 2.5.7 28/03/2025
|
||||
|
||||
- Sidebar and comment block JS upgrades.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* Plugin Name: WP-Discourse
|
||||
* Description: Use Discourse as a community engine for your WordPress blog
|
||||
* Version: 2.5.7
|
||||
* Version: 2.5.8
|
||||
* Requires at least: 5.1
|
||||
* Requires PHP: 5.6
|
||||
* Author: Discourse
|
||||
|
@ -36,7 +36,7 @@ define( 'WPDISCOURSE_PATH', plugin_dir_path( __FILE__ ) );
|
|||
define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) );
|
||||
define( 'MIN_WP_VERSION', '4.7' );
|
||||
define( 'MIN_PHP_VERSION', '5.6.0' );
|
||||
define( 'WPDISCOURSE_VERSION', '2.5.7' );
|
||||
define( 'WPDISCOURSE_VERSION', '2.5.8' );
|
||||
define( 'WPDISCOURSE_LOGO_URL', WPDISCOURSE_PATH . 'assets/icon.svg' );
|
||||
$base64 = base64_encode( file_get_contents( WPDISCOURSE_LOGO_URL ) );
|
||||
define( 'WPDISCOURSE_LOGO', "data:image/svg+xml;base64,$base64" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue