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

Fixed: Email subject converts & to & #2581

Merged
merged 1 commit into from
Jun 13, 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
4 changes: 4 additions & 0 deletions php/classes/class-qsm-emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) ) {
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading