diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 2fd6efe513..5f063d9102 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -811,7 +811,11 @@ function customize_themes_print_templates() {

<# if ( ! data.updateResponse.compatibleWP && ! data.updateResponse.compatiblePHP ) { #> <# } else if ( ! data.updateResponse.compatibleWP ) { #> <# } else if ( ! data.updateResponse.compatiblePHP ) { #>

-

+

', '' ); } } elseif ( ! $theme['updateResponse']['compatibleWP'] ) { - _e( 'There is a new version available, but it doesn’t work with your version of WordPress.' ); + printf( + /* translators: %s: Theme name. */ + __( 'There is a new version of %s available, but it doesn’t work with your version of WordPress.' ), + $theme['name'] + ); if ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: URL to WordPress Updates screen. */ @@ -434,7 +442,11 @@ foreach ( $themes as $theme ) : ); } } elseif ( ! $theme['updateResponse']['compatiblePHP'] ) { - _e( 'There is a new version available, but it doesn’t work with your version of PHP.' ); + printf( + /* translators: %s: Theme name. */ + __( 'There is a new version of %s available, but it doesn’t work with your version of PHP.' ), + $theme['name'] + ); if ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: URL to Update PHP page. */ @@ -719,10 +731,14 @@ function wp_theme_auto_update_setting_template() { <# } #>

<# } else { #> -

+

<# if ( ! data.updateResponse.compatibleWP && ! data.updateResponse.compatiblePHP ) { #> <# } else if ( ! data.updateResponse.compatibleWP ) { #> <# } else if ( ! data.updateResponse.compatiblePHP ) { #> <# if ( ! data.updateResponse.compatibleWP && ! data.updateResponse.compatiblePHP ) { #> <# } else if ( ! data.updateResponse.compatibleWP ) { #> <# } else if ( ! data.updateResponse.compatiblePHP ) { #>

<# } else { #> -
+

<# if ( ! data.theme.updateResponse.compatibleWP && ! data.theme.updateResponse.compatiblePHP ) { #> <# } else if ( ! data.theme.updateResponse.compatibleWP ) { #> <# } else if ( ! data.theme.updateResponse.compatiblePHP ) { #>