From 0531cc11b4f9c8746dfe573b284f037c2b99554f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 5 Nov 2021 17:58:57 +0000 Subject: [PATCH] Coding Standards: Consistently escape attribute in `wp-admin/themes.php`. Follow-up to [27012], [38057], [47816], [51083]. Props sabbirshouvo, audrasjb. Fixes #54256. Built from https://develop.svn.wordpress.org/trunk@52020 git-svn-id: http://core.svn.wordpress.org/trunk@51612 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 20 ++++++++++---------- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 87b1b6db7a..9863aa68ae 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -363,8 +363,8 @@ if ( ! empty( $_GET['search'] ) ) { */ foreach ( $themes as $theme ) : - $aria_action = esc_attr( $theme['id'] . '-action' ); - $aria_name = esc_attr( $theme['id'] . '-name' ); + $aria_action = $theme['id'] . '-action'; + $aria_name = $theme['id'] . '-name'; $active_class = ''; if ( $theme['active'] ) { @@ -374,7 +374,7 @@ foreach ( $themes as $theme ) :
- +
@@ -508,7 +508,7 @@ foreach ( $themes as $theme ) : /* translators: %s: Theme name. */ $details_aria_label = sprintf( _x( 'View Theme Details for %s', 'theme' ), $theme['name'] ); ?> - +
-

+

-

+

@@ -899,7 +899,7 @@ function wp_theme_auto_update_setting_template() { /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); ?> - + <# if ( data.actions.activate ) { #> - + <# } #> <# } else { #> @@ -1126,7 +1126,7 @@ function wp_theme_auto_update_setting_template() { $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); ?> <# if ( data.actions.activate ) { #> - + <# } #> <# } #> @@ -1137,7 +1137,7 @@ function wp_theme_auto_update_setting_template() { /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), '{{ data.name }}' ); ?> - + <# } #>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 7fa513802b..5f964d4324 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52019'; +$wp_version = '5.9-alpha-52020'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.