Merge pull request #24639 from itowhid06/master

use `esc_html__` instead of  `esc_html`
This commit is contained in:
Rodrigo Primo 2019-09-23 12:32:23 -03:00 committed by GitHub
commit 1b699621be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php if ( isset( $_GET['search'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <?php if ( isset( $_GET['search'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
<h1 class="search-form-title" > <h1 class="search-form-title" >
<?php printf( esc_html( 'Showing search results for: %s', 'woocommerce' ), '<strong>' . esc_html( sanitize_text_field( wp_unslash( $_GET['search'] ) ) ) . '</strong>' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <?php printf( esc_html__( 'Showing search results for: %s', 'woocommerce' ), '<strong>' . esc_html( sanitize_text_field( wp_unslash( $_GET['search'] ) ) ) . '</strong>' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
</h1> </h1>
<?php endif; ?> <?php endif; ?>

View File

@ -468,7 +468,7 @@ abstract class ActionScheduler_Abstract_ListTable extends WP_List_Table {
/** /**
* Set the data for displaying. It will attempt to unserialize (There is a chance that some columns * Set the data for displaying. It will attempt to unserialize (There is a chance that some columns
* are serialized). This can be override in child classes for futher data transformation. * are serialized). This can be override in child classes for further data transformation.
*/ */
protected function set_items( array $items ) { protected function set_items( array $items ) {
$this->items = array(); $this->items = array();
@ -547,7 +547,7 @@ abstract class ActionScheduler_Abstract_ListTable extends WP_List_Table {
} }
/** /**
* Default column formatting, it will escape everythig for security. * Default column formatting, it will escape everything for security.
*/ */
public function column_default( $item, $column_name ) { public function column_default( $item, $column_name ) {
$column_html = esc_html( $item[ $column_name ] ); $column_html = esc_html( $item[ $column_name ] );