Support

Home Forums Event Espresso Premium Please remove HTML comment from email message template

Please remove HTML comment from email message template

Posted: September 10, 2023 at 1:07 pm

Viewing 1 reply thread


Daniel

September 10, 2023 at 1:07 pm

I just noticed this spurious and confusing comment that is embedded in one of the core files.


<!-- If you delete this meta tag, Half Life 3 will never be released. -->

Please remove this as I would prefer not to have this nonsensical text in every single one of my outgoing email messages.

It is in the file:
email_main_wrapper.template.php


<?php

/**
* @var string $subject
* @var string $message_type
* @var string $from
* @var string $main_body
*/

use EventEspresso\core\services\request\sanitizers\AllowedTags;

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- If you delete this meta tag, Half Life 3 will never be released. -->
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Facebook sharing information tags -->
<meta property="og:title" content="<?php echo esc_attr($subject); ?>" />
<title><?php echo wp_strip_all_tags($subject); ?></title>
<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_head', $message_type, $subject, $from, $main_body); ?>
</head>
<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_header', $message_type, $subject, $from, $main_body); ?>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_before_main_body', $message_type, $subject, $from, $main_body); ?>
<?php echo wp_kses($main_body, AllowedTags::getWithFullTags()); ?>
<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_after_main_body', $message_type, $subject, $from, $main_body); ?>
</body>
<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_footer', $message_type, $subject, $from, $main_body); ?>
</html>

Cheers!
D


Garth

  • Support Staff

September 11, 2023 at 11:39 am

Hi Daniel, that will be removed in a future update.

Viewing 1 reply thread

The support post ‘Please remove HTML comment from email message template’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso