diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/includes/class-theme-installer-skin.php --- a/wp/wp-admin/includes/class-theme-installer-skin.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/includes/class-theme-installer-skin.php Wed Sep 21 18:19:35 2022 +0200 @@ -65,7 +65,7 @@ * * @since 5.5.0 * - * @param WP_Error $wp_error WP_Error. + * @param WP_Error $wp_error WP_Error object. * @return bool */ public function hide_process_failed( $wp_error ) { @@ -155,13 +155,13 @@ $install_actions['themes_page'] = sprintf( '%s', self_admin_url( 'theme-install.php' ), - __( 'Return to Theme Installer' ) + __( 'Go to Theme Installer' ) ); } elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) { $install_actions['themes_page'] = sprintf( '%s', self_admin_url( 'themes.php' ), - __( 'Return to Themes page' ) + __( 'Go to Themes page' ) ); } @@ -221,7 +221,7 @@ return false; } - echo '

' . esc_html( __( 'This theme is already installed.' ) ) . '

'; + echo '

' . esc_html__( 'This theme is already installed.' ) . '

'; // Check errors for current theme. if ( is_wp_error( $current_theme_data->errors() ) ) { @@ -245,7 +245,7 @@ ); $table = ''; - $table .= ''; + $table .= ''; $is_same_theme = true; // Let's consider only these rows. @@ -291,7 +291,7 @@ $install_actions = array(); $can_update = true; - $blocked_message = '

' . esc_html( __( 'The theme cannot be updated due to the following:' ) ) . '

'; + $blocked_message = '

' . esc_html__( 'The theme cannot be updated due to the following:' ) . '

'; $blocked_message .= '
' . esc_html( __( 'Current' ) ) . '' . esc_html( __( 'Uploaded' ) ) . '
' . esc_html_x( 'Current', 'theme' ) . '' . esc_html_x( 'Uploaded', 'theme' ) . '