From c87886a08d9ac026d5e61b2335db9a4264240bb5 Mon Sep 17 00:00:00 2001 From: randhirexpresstech Date: Thu, 13 Jun 2024 16:10:32 +0530 Subject: [PATCH] Fixed: Email subject converts & to & --- php/classes/class-qsm-emails.php | 4 ++++ readme.txt | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/php/classes/class-qsm-emails.php b/php/classes/class-qsm-emails.php index ffd3599ff..7565c5bf4 100644 --- a/php/classes/class-qsm-emails.php +++ b/php/classes/class-qsm-emails.php @@ -40,6 +40,10 @@ public static function send_emails( $transient_id ) { foreach ( $emails as $index => $email ) { $email_subject = $mlwQuizMasterNext->pluginHelper->qsm_language_support( $email['subject'], "quiz-email-subject-{$index}-{$response_data['quiz_id']}" ); + + // kses converts ampersands to & core.trac.wordpress.org/ticket/11311. + $email_subject = str_replace( '&', '&', $email_subject ); + $email_content = $mlwQuizMasterNext->pluginHelper->qsm_language_support( $email['content'], "quiz-email-content-{$index}-{$response_data['quiz_id']}" ); // Checks if any conditions are present. Else, send it always. if ( ! empty( $email['conditions'] ) ) { diff --git a/readme.txt b/readme.txt index 29fd3533b..9766b60ce 100644 --- a/readme.txt +++ b/readme.txt @@ -164,8 +164,9 @@ This is usually a theme conflict. You can [checkout out our common conflict solu == Changelog == = 9.0.5 ( Beta ) = -* Fixed: quiz contact form email allow domains validation +* Fixed: Quiz contact form email allow domains validation * Fixed: wpApiSettings JS error +* Fixed: Email subject converts & to & = 9.0.4 ( June 10, 2024 ) = * Enhancement: Improved HTML code management on the result page