Fixed use of esc_html() and bumped the template version

Also fixed some coding standards
This commit is contained in:
Claudio Sanches 2020-07-01 17:39:49 -03:00 committed by GitHub
parent 995cedbcfe
commit bdf996eec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -10,9 +10,9 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 1.6.4
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 4.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -21,5 +21,5 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<h1 class="product_title entry-title">
<?php esc_html_e( get_the_title() ); ?>
</h1>
<?php echo esc_html( get_the_title() ); ?>
</h1>