Skip to content

Commit

Permalink
fix(EmailNotifications): remove convert_chars for title inside emails…
Browse files Browse the repository at this point in the history
… as it causes issues
  • Loading branch information
harunbleech committed Jan 22, 2024
1 parent 0970537 commit 0b82ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/features/class-email-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function send_email( $differences, $post_id, $alert_id ) {
* so we remove it as in plain text emails it displays it as e.g. ’s
*/
remove_filter( 'the_title', 'wptexturize' );
remove_filter( 'the_title', 'convert_chars' );

$message = esc_html_x( 'Howdy,', 'notification email', 'visual-regression-tests' ) . "\n\n" .
esc_html_x( 'New visual differences have been detected on the following page:', 'notification email', 'visual-regression-tests' ) . "\n\n" .
Expand Down

0 comments on commit 0b82ca4

Please sign in to comment.