From a20a5a4516dbf4cc7ca9e16f1604e96f4f13f563 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 13 Nov 2024 12:27:12 +0000 Subject: [PATCH] Coding Standards: Consistently escape URLs in `wp-admin/themes.php`. Includes: * Wrapping long lines for better readability. * Bringing some consistency to the placement of `href` and `aria-label` attributes. * Adding missing `aria-label` attributes for Live Preview links. Follow-up to [26726], [52020], [51083]. Props patelketan, sainathpoojary, SergeyBiryukov. Fixes #62405. Built from https://develop.svn.wordpress.org/trunk@59400 git-svn-id: http://core.svn.wordpress.org/trunk@58786 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 122 +++++++++++++++++++++++++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 96 insertions(+), 28 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index d7ebd5c646..4c814dd42b 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -583,7 +583,9 @@ foreach ( $themes as $theme ) : /* translators: %s: Theme name. */ $details_aria_label = sprintf( _x( 'View Theme Details for %s', 'theme' ), $theme['name'] ); ?> - +
- + - + + - + - - - + + + + @@ -954,7 +975,9 @@ function wp_theme_auto_update_setting_template() { /* translators: %s: Theme name. */ $details_aria_label = sprintf( _x( 'View Theme Details for %s', 'theme' ), '{{ data.name }}' ); ?> - +
- + <# } #> <# } else { #> <# if ( data.compatibleWP && data.compatiblePHP ) { #> @@ -986,20 +1012,36 @@ function wp_theme_auto_update_setting_template() { /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); ?> - + + - + <# } else { #> - + + <# if ( ! data.blockTheme ) { #> - + + <# } #> <# } #> <# } #> @@ -1211,31 +1253,54 @@ function wp_theme_auto_update_setting_template() {
- +
+
<# if ( data.compatibleWP && data.compatiblePHP ) { #> - <# if ( ! data.blockTheme ) { #> - + + <# } #> + <# if ( data.actions.activate ) { #> - + + <# } #> <# } else { #> - <# if ( ! data.blockTheme ) { #> - + + <# } #> + <# if ( data.actions.activate ) { #> - + + <# } #> <# } #>
@@ -1245,7 +1310,10 @@ 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 63ca53aa33..3af5a5d80e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59399'; +$wp_version = '6.8-alpha-59400'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.