Skip to content

Commit

Permalink
Merge pull request #33 from Hackkzy/master
Browse files Browse the repository at this point in the history
v1.7.9
  • Loading branch information
BhargavBhandari90 authored Feb 23, 2024
2 parents 7bf2f14 + 8f35622 commit 0134043
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 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.8
**Stable tag:** 1.7.9
**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.9 ###
* Bug Fix : Double quotes issue with Email subject.

### 1.7.8 ###
* Hook added : `cmnt_mntn_replace_mentioned_name`.

Expand Down
2 changes: 1 addition & 1 deletion app/admin/class-admin-comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function cmt_mntn_admin_settings() {
<tr valign="top">
<th scope="row"><?php esc_html_e( 'Email Subject', 'comment-mention' ); ?></th>
<td>
<input type="text" class="regular-text" name="cmt_mntn_email_subject" value="<?php echo esc_attr( $cmt_mntn_subject ); ?>" />
<input type="text" class="regular-text" name="cmt_mntn_email_subject" value="<?php echo esc_attr( stripslashes( $cmt_mntn_subject ) ); ?>" />
<p class="description"><?php esc_html_e( 'Subject for mentioned user email. Available shortcodes:', 'comment-mention' ); ?><br/>
<strong>#post_name#</strong>&nbsp;-&nbsp;<?php esc_html_e( 'Post title where user is mentioned.', 'comment-mention' ); ?><br/>
<strong>#user_name#</strong>&nbsp;-&nbsp;<?php esc_html_e( 'Username who is mentioned.', 'comment-mention' ); ?><br/>
Expand Down
2 changes: 1 addition & 1 deletion app/main/class-bbpress-user-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function() {
// Send mail.
wp_mail(
esc_html( $cmt_mntn_user_data->user_email ),
esc_html( $cmt_mntn_mail_sub ),
stripslashes( html_entity_decode( esc_html( $cmt_mntn_mail_sub ), ENT_QUOTES, 'UTF-8' ) ),
wp_kses_post( $cmt_mntn_mail_body ),
$headers
);
Expand Down
2 changes: 1 addition & 1 deletion app/main/class-comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function() {
// Send mail.
wp_mail(
esc_html( $cmt_mntn_user_data->user_email ),
esc_html( $cmt_mntn_mail_sub ),
stripslashes( html_entity_decode( esc_html( $cmt_mntn_mail_sub ), ENT_QUOTES, 'UTF-8' ) ),
wp_kses_post( $cmt_mntn_mail_body ),
$headers
);
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.8
* Version: 1.7.9
*
* @package Comment_Mention
*/
Expand All @@ -21,7 +21,7 @@
/**
* The version of the plugin.
*/
define( 'CMT_MNTN_VERSION', '1.7.8' );
define( 'CMT_MNTN_VERSION', '1.7.9' );
}
if ( ! defined( 'CMT_MNTN_PATH' ) ) {
/**
Expand Down
8 changes: 4 additions & 4 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-16 15:20:22+00:00\n"
"POT-Creation-Date: 2024-02-23 09:13:56+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:447
#: app/includes/common-functions.php:71 app/main/class-comment-mention.php:448
msgid "You were mentioned in a comment"
msgstr ""

Expand All @@ -108,8 +108,8 @@ msgstr ""
msgid "Enable User Mention in Topics & Replies Content"
msgstr ""

#: app/main/class-comment-mention.php:386
#: app/main/class-comment-mention.php:439
#: app/main/class-comment-mention.php:387
#: app/main/class-comment-mention.php:440
msgid "Someone"
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.8
Stable tag: 1.7.9
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.9 =
* Bug Fix : Double quotes issue with Email subject.

= 1.7.8 =
* Hook added : `cmnt_mntn_replace_mentioned_name`.

Expand Down

0 comments on commit 0134043

Please sign in to comment.