Skip to content

Commit

Permalink
Merge pull request #34 from Hackkzy/link-fix
Browse files Browse the repository at this point in the history
v1.7.10
  • Loading branch information
BhargavBhandari90 authored Mar 13, 2024
2 parents 0134043 + ff2e50c commit daffe84
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
6 changes: 2 additions & 4 deletions app/includes/common-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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' ) ) {
/**
Expand Down
4 changes: 2 additions & 2 deletions languages/lang.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit daffe84

Please sign in to comment.