diff --git a/src/wp-admin/includes/class-wp-upgrader-skins.php b/src/wp-admin/includes/class-wp-upgrader-skins.php
index 851da072b3..89c901174b 100644
--- a/src/wp-admin/includes/class-wp-upgrader-skins.php
+++ b/src/wp-admin/includes/class-wp-upgrader-skins.php
@@ -230,8 +230,8 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
$this->decrement_update_count( 'plugin' );
$update_actions = array(
- 'activate_plugin' => '' . __('Activate Plugin') . '',
- 'plugins_page' => '' . __('Return to Plugins page') . ''
+ 'activate_plugin' => '' . __( 'Activate Plugin' ) . '',
+ 'plugins_page' => '' . __( 'Return to Plugins page' ) . ''
);
if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugins' ) )
unset( $update_actions['activate_plugin'] );
@@ -444,8 +444,8 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function bulk_footer() {
parent::bulk_footer();
$update_actions = array(
- 'plugins_page' => '' . __('Return to Plugins page') . '',
- 'updates_page' => '' . __('Return to WordPress Updates') . ''
+ 'plugins_page' => '' . __( 'Return to Plugins page' ) . '',
+ 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . ''
);
if ( ! current_user_can( 'activate_plugins' ) )
unset( $update_actions['plugins_page'] );
@@ -496,8 +496,8 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function bulk_footer() {
parent::bulk_footer();
$update_actions = array(
- 'themes_page' => '' . __('Return to Themes page') . '',
- 'updates_page' => '' . __('Return to WordPress Updates') . ''
+ 'themes_page' => '' . __( 'Return to Themes page' ) . '',
+ 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . ''
);
if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) )
unset( $update_actions['themes_page'] );
@@ -561,21 +561,21 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins';
if ( 'import' == $from )
- $install_actions['activate_plugin'] = '' . __('Activate Plugin & Run Importer') . '';
+ $install_actions['activate_plugin'] = '' . __( 'Activate Plugin & Run Importer' ) . '';
else
- $install_actions['activate_plugin'] = '' . __('Activate Plugin') . '';
+ $install_actions['activate_plugin'] = '' . __( 'Activate Plugin' ) . '';
if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
- $install_actions['network_activate'] = '' . __('Network Activate') . '';
+ $install_actions['network_activate'] = '' . __( 'Network Activate' ) . '';
unset( $install_actions['activate_plugin'] );
}
if ( 'import' == $from ) {
- $install_actions['importers_page'] = '' . __('Return to Importers') . '';
+ $install_actions['importers_page'] = '' . __( 'Return to Importers' ) . '';
} elseif ( $this->type == 'web' ) {
- $install_actions['plugins_page'] = '' . __('Return to Plugin Installer') . '';
+ $install_actions['plugins_page'] = '' . __( 'Return to Plugin Installer' ) . '';
} else {
- $install_actions['plugins_page'] = '' . __('Return to Plugins page') . '';
+ $install_actions['plugins_page'] = '' . __( 'Return to Plugins page' ) . '';
}
if ( ! $this->result || is_wp_error($this->result) ) {
@@ -664,19 +664,19 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet );
$install_actions = array();
- $install_actions['preview'] = '' . __('Preview') . '';
+ $install_actions['preview'] = '' . __( 'Preview' ) . '' . sprintf( __( 'Preview “%s”' ), $name ) . '';
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $install_actions['preview'] .= '' . __('Live Preview') . '';
+ $install_actions['preview'] .= '' . __( 'Live Preview' ) . '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
}
- $install_actions['activate'] = '' . __('Activate') . '';
+ $install_actions['activate'] = '' . __( 'Activate' ) . '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
if ( is_network_admin() && current_user_can( 'manage_network_themes' ) )
- $install_actions['network_enable'] = '' . __( 'Network Enable' ) . '';
+ $install_actions['network_enable'] = '' . __( 'Network Enable' ) . '';
if ( $this->type == 'web' )
- $install_actions['themes_page'] = '' . __('Return to Theme Installer') . '';
+ $install_actions['themes_page'] = '' . __( 'Return to Theme Installer' ) . '';
elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) )
- $install_actions['themes_page'] = '' . __('Return to Themes page') . '';
+ $install_actions['themes_page'] = '' . __( 'Return to Themes page' ) . '';
if ( ! $this->result || is_wp_error($this->result) || is_network_admin() || ! current_user_can( 'switch_themes' ) )
unset( $install_actions['activate'], $install_actions['preview'] );
@@ -747,21 +747,21 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
if ( get_stylesheet() == $stylesheet ) {
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $update_actions['preview'] = '' . __('Customize') . '';
+ $update_actions['preview'] = '' . __( 'Customize' ) . '' . sprintf( __( 'Customize “%s”' ), $name ) . '';
}
} elseif ( current_user_can( 'switch_themes' ) ) {
- $update_actions['preview'] = '' . __('Preview') . '';
+ $update_actions['preview'] = '' . __( 'Preview' ) . '' . sprintf( __( 'Preview “%s”' ), $name ) . '';
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $update_actions['preview'] .= '' . __('Live Preview') . '';
+ $update_actions['preview'] .= '' . __( 'Live Preview' ) . '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
}
- $update_actions['activate'] = '' . __('Activate') . '';
+ $update_actions['activate'] = '' . __( 'Activate' ) . '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
}
if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() )
unset( $update_actions['preview'], $update_actions['activate'] );
}
- $update_actions['themes_page'] = '' . __('Return to Themes page') . '';
+ $update_actions['themes_page'] = '' . __( 'Return to Themes page' ) . '';
/**
* Filter the list of action links available following a single theme update.
@@ -840,7 +840,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
public function bulk_footer() {
$this->decrement_update_count( 'translation' );
$update_actions = array();
- $update_actions['updates_page'] = '' . __( 'Return to WordPress Updates' ) . '';
+ $update_actions['updates_page'] = '' . __( 'Return to WordPress Updates page' ) . '';
/**
* Filter the list of action links available following a translations update.