diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-admin/themes.php --- a/wp/wp-admin/themes.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-admin/themes.php Fri Sep 05 18:52:52 2025 +0200 @@ -24,7 +24,7 @@ if ( ! $theme->exists() || ! $theme->is_allowed() ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . + '

' . __( 'An error occurred.' ) . '

' . '

' . __( 'The requested theme does not exist.' ) . '

', 403 ); @@ -67,7 +67,7 @@ if ( ! $theme->exists() ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . + '

' . __( 'An error occurred while deleting the theme.' ) . '

' . '

' . __( 'The requested theme does not exist.' ) . '

', 403 ); @@ -153,7 +153,7 @@ } else { $help_install = '

' . sprintf( /* translators: %s: https://wordpress.org/themes/ */ - __( 'If you would like to see more themes to choose from, click on the “Add New Theme” button and you will be able to browse or search for additional themes from the WordPress Theme Directory. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), + __( 'If you would like to see more themes to choose from, click on the “Add Theme” button and you will be able to browse or search for additional themes from the WordPress Theme Directory. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ), __( 'https://wordpress.org/themes/' ) ) . '

'; } @@ -231,7 +231,7 @@ 'adminUrl' => parse_url( admin_url(), PHP_URL_PATH ), ), 'l10n' => array( - 'addNew' => __( 'Add New Theme' ), + 'addNew' => __( 'Add Theme' ), 'search' => __( 'Search installed themes' ), /* translators: %d: Number of themes. */ 'themesFound' => __( 'Number of Themes found: %d' ), @@ -252,7 +252,7 @@ - +
@@ -345,7 +345,7 @@ if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { wp_admin_notice( - __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message(), + '' . __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message(), array( 'additional_classes' => array( 'error' ), ) @@ -583,7 +583,9 @@ /* translators: %s: Theme name. */ $details_aria_label = sprintf( _x( 'View Theme Details for %s', 'theme' ), $theme['name'] ); ?> - +
- + - + + - + - - - + + + + @@ -954,7 +975,9 @@ /* 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 @@ /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); ?> - + + - + <# } else { #> - + + <# if ( ! data.blockTheme ) { #> - + + <# } #> <# } #> <# } #> @@ -1211,31 +1253,54 @@
- +
+
<# if ( data.compatibleWP && data.compatiblePHP ) { #> - <# if ( ! data.blockTheme ) { #> - + + <# } #> + <# if ( data.actions.activate ) { #> - + + <# } #> <# } else { #> - <# if ( ! data.blockTheme ) { #> - + + <# } #> + <# if ( data.actions.activate ) { #> - + + <# } #> <# } #>
@@ -1245,7 +1310,10 @@ /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), '{{ data.name }}' ); ?> - + <# } #>