Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.7.9 #33

Merged
merged 7 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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