Conversation
supportHello. This string with esc_html_e also has echo : https://plugins.trac.wordpress.org/browser/stops-core-theme-and-plugin-updates/tags/9.0.20/includes/MPSUM_Admin_Core.php#L322 Thanks.
Do you mean like this: https://snipboard.io/qiSNG2.jpg You can use echo esc_html($text); to escape content inside HTML tags (e.g., inside a <div> or <p>) In this case we are using it inside of the <p> tag
Hello. Thanks for the reply. I appreciate the clarification. However, my issue is with how you use the esc_html_e function in this line. The line I highlighted is: <p class="description"> <?php echo esc_html_e('e-mails can be comma separated', 'stops-core-theme-and-plugin-updates'); ?> </p> This leads to a redundant echo , since esc_html_e is designed to print the content directly, so there is no need to use echo . Thanks again.
Yes, I see it. I will pass this onto our development team
Do you mean like this: https://snipboard.io/qiSNG2.jpg You can use echo esc_html($text); to escape content inside HTML tags (e.g., inside a <div> or <p>) In this case we are using it inside of the <p> tag
Hello. Thanks for the reply. I appreciate the clarification. However, my issue is with how you use the esc_html_e function in this line. The line I highlighted is: <p class="description"> <?php echo esc_html_e('e-mails can be comma separated', 'stops-core-theme-and-plugin-updates'); ?> </p> This leads to a redundant echo , since esc_html_e is designed to print the content directly, so there is no need to use echo . Thanks again.
Yes, I see it. I will pass this onto our development team