--- a/wp/wp-admin/includes/class-plugin-installer-skin.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/includes/class-plugin-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 ) {
@@ -107,7 +107,7 @@
$install_actions['activate_plugin'] = sprintf(
'<a class="button button-primary" href="%s" target="_parent">%s</a>',
wp_nonce_url( 'plugins.php?action=activate&from=press-this&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
- __( 'Activate Plugin & Return to Press This' )
+ __( 'Activate Plugin & Go to Press This' )
);
} else {
$install_actions['activate_plugin'] = sprintf(
@@ -130,25 +130,25 @@
$install_actions['importers_page'] = sprintf(
'<a href="%s" target="_parent">%s</a>',
admin_url( 'import.php' ),
- __( 'Return to Importers' )
+ __( 'Go to Importers' )
);
} elseif ( 'web' === $this->type ) {
$install_actions['plugins_page'] = sprintf(
'<a href="%s" target="_parent">%s</a>',
self_admin_url( 'plugin-install.php' ),
- __( 'Return to Plugin Installer' )
+ __( 'Go to Plugin Installer' )
);
} elseif ( 'upload' === $this->type && 'plugins' === $from ) {
$install_actions['plugins_page'] = sprintf(
'<a href="%s">%s</a>',
self_admin_url( 'plugin-install.php' ),
- __( 'Return to Plugin Installer' )
+ __( 'Go to Plugin Installer' )
);
} else {
$install_actions['plugins_page'] = sprintf(
'<a href="%s" target="_parent">%s</a>',
self_admin_url( 'plugins.php' ),
- __( 'Return to Plugins page' )
+ __( 'Go to Plugins page' )
);
}
@@ -208,7 +208,7 @@
return false;
}
- echo '<h2 class="update-from-upload-heading">' . esc_html( __( 'This plugin is already installed.' ) ) . '</h2>';
+ echo '<h2 class="update-from-upload-heading">' . esc_html__( 'This plugin is already installed.' ) . '</h2>';
$this->is_downgrading = version_compare( $current_plugin_data['Version'], $new_plugin_data['Version'], '>' );
@@ -221,8 +221,8 @@
);
$table = '<table class="update-from-upload-comparison"><tbody>';
- $table .= '<tr><th></th><th>' . esc_html( __( 'Current' ) ) . '</th>';
- $table .= '<th>' . esc_html( __( 'Uploaded' ) ) . '</th></tr>';
+ $table .= '<tr><th></th><th>' . esc_html_x( 'Current', 'plugin' ) . '</th>';
+ $table .= '<th>' . esc_html_x( 'Uploaded', 'plugin' ) . '</th></tr>';
$is_same_plugin = true; // Let's consider only these rows.
@@ -256,7 +256,7 @@
$install_actions = array();
$can_update = true;
- $blocked_message = '<p>' . esc_html( __( 'The plugin cannot be updated due to the following:' ) ) . '</p>';
+ $blocked_message = '<p>' . esc_html__( 'The plugin cannot be updated due to the following:' ) . '</p>';
$blocked_message .= '<ul class="ul-disc">';
$requires_php = isset( $new_plugin_data['RequiresPHP'] ) ? $new_plugin_data['RequiresPHP'] : null;
@@ -310,7 +310,7 @@
$install_actions['overwrite_plugin'] = sprintf(
'<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
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;
@@ -325,8 +325,8 @@
);
/**
- * Filters the list of action links available following a single plugin installation
- * failure when overwriting is allowed.
+ * Filters the list of action links available following a single plugin installation failure
+ * when overwriting is allowed.
*
* @since 5.5.0
*