Skip to content

Commit

Permalink
fix: 🐛 Fixed double quotes issue in E-mail subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackkzy committed Feb 23, 2024
1 parent 8df3fb9 commit d8d8ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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-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

0 comments on commit d8d8ea4

Please sign in to comment.