diff --git a/src/wp-admin/includes/class-plugin-installer-skin.php b/src/wp-admin/includes/class-plugin-installer-skin.php
index 2067225d7e..1154a81004 100644
--- a/src/wp-admin/includes/class-plugin-installer-skin.php
+++ b/src/wp-admin/includes/class-plugin-installer-skin.php
@@ -221,8 +221,8 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
);
$table = '
';
- $table .= ' | ' . esc_html( __( 'Current' ) ) . ' | ';
- $table .= '' . esc_html( __( 'Uploaded' ) ) . ' |
';
+ $table .= ' | ' . esc_html_x( 'Current', 'plugin' ) . ' | ';
+ $table .= '' . esc_html_x( 'Uploaded', 'plugin' ) . ' |
';
$is_same_plugin = true; // Let's consider only these rows.
@@ -310,7 +310,7 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$install_actions['overwrite_plugin'] = sprintf(
'%s',
wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'plugin-upload' ),
- __( 'Replace current with uploaded' )
+ _x( 'Replace current with uploaded', 'plugin' )
);
} else {
echo $blocked_message;
diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php
index 41d7798a02..b9eed856d8 100644
--- a/src/wp-admin/includes/class-theme-installer-skin.php
+++ b/src/wp-admin/includes/class-theme-installer-skin.php
@@ -245,7 +245,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
);
$table = '';
- $table .= ' | ' . esc_html( __( 'Current' ) ) . ' | ' . esc_html( __( 'Uploaded' ) ) . ' |
';
+ $table .= ' | ' . esc_html_x( 'Current', 'theme' ) . ' | ' . esc_html_x( 'Uploaded', 'theme' ) . ' |
';
$is_same_theme = true; // Let's consider only these rows.
@@ -345,7 +345,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$install_actions['overwrite_theme'] = sprintf(
'%s',
wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
- __( 'Replace current with uploaded' )
+ _x( 'Replace current with uploaded', 'theme' )
);
} else {
echo $blocked_message;