diff --git a/README.md b/README.md index ccf53c0..7ce1e56 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** comments, mention, email, user, bbpress **Requires at least:** 4.6 **Tested up to:** 6.4.3 -**Stable tag:** 1.7.9 +**Stable tag:** 1.7.10 **Requires PHP:** 5.6 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html @@ -62,6 +62,9 @@ e.g. ## Changelog ## +### 1.7.10 ### +* Fix bbPress reply link. + ### 1.7.9 ### * Bug Fix : Double quotes issue with Email subject. diff --git a/app/includes/common-functions.php b/app/includes/common-functions.php index 0cc97da..64db14a 100644 --- a/app/includes/common-functions.php +++ b/app/includes/common-functions.php @@ -46,12 +46,10 @@ function cmt_mntn_mail_setting( $uid, $post_id ) { $cmt_mntn_comment_link = trailingslashit( get_permalink( $post_id ) ) . '#post-' . intval( $post_id ); // Get topic id related to reply. - if ( 'reply' === get_post_type( $post_id ) && function_exists( 'bbp_get_reply_topic_id' ) ) { - - $topic_id = bbp_get_reply_topic_id( $post_id ); + if ( 'reply' === get_post_type( $post_id ) && function_exists( 'bbp_get_reply_url' ) ) { // Get current comment link. - $cmt_mntn_comment_link = trailingslashit( get_permalink( $topic_id ) ) . '#post-' . intval( $post_id ); + $cmt_mntn_comment_link = bbp_get_reply_url( (int) $post_id ); } // Get setting. diff --git a/comment-mention.php b/comment-mention.php index f9a66bd..962ca92 100644 --- a/comment-mention.php +++ b/comment-mention.php @@ -6,7 +6,7 @@ * Author URI: https://bhargavb.com * Text Domain: comment-mention * Domain Path: /languages - * Version: 1.7.9 + * Version: 1.7.10 * * @package Comment_Mention */ @@ -21,7 +21,7 @@ /** * The version of the plugin. */ - define( 'CMT_MNTN_VERSION', '1.7.9' ); + define( 'CMT_MNTN_VERSION', '1.7.10' ); } if ( ! defined( 'CMT_MNTN_PATH' ) ) { /** diff --git a/languages/lang.pot b/languages/lang.pot index ccf888b..7a844e6 100644 --- a/languages/lang.pot +++ b/languages/lang.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/comment-mention\n" -"POT-Creation-Date: 2024-02-23 09:13:56+00:00\n" +"POT-Creation-Date: 2024-03-13 08:16:15+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -96,7 +96,7 @@ msgstr "" msgid "Settings Saved" msgstr "" -#: app/includes/common-functions.php:71 app/main/class-comment-mention.php:448 +#: app/includes/common-functions.php:69 app/main/class-comment-mention.php:448 msgid "You were mentioned in a comment" msgstr "" diff --git a/readme.txt b/readme.txt index 806089d..0ed66a4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BnB90/50 Tags: comments, mention, email, user, bbpress Requires at least: 4.6 Tested up to: 6.4.3 -Stable tag: 1.7.9 +Stable tag: 1.7.10 Requires PHP: 5.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -62,6 +62,9 @@ e.g. == Changelog == += 1.7.10 = +* Fix bbPress reply link. + = 1.7.9 = * Bug Fix : Double quotes issue with Email subject.