From b64d06f7840a18f86a42ad14c8bff80fe6fc1456 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 5 Nov 2021 17:57:40 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52020 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/themes.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 87b1b6db7ad9..9863aa68aeb4 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -363,8 +363,8 @@ */ 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 @@
- +
@@ -508,7 +508,7 @@ /* 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 }}' ); ?> - + <# } #>