mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
Themes: Replace "Active" wording with "Installed" in the theme install checks page.
When reinstalling a theme by uploading a ZIP file, the wording used in some strings referred to the "active" theme even though it's not the currrently active theme. This changeset replaces these strings to refer to the "installed" theme, which is more accurate. Follow-up to [52610], [52580]. Props afercia, ankitkumarshah, abcd95, yogeshbhutkar, parthvataliya, sainathpoojary, virgar, gaellebesson, nuryko, guillaumeturpin, maximemeganck, sabrineg. Fixes #62603. See #54831, #54770 Built from https://develop.svn.wordpress.org/trunk@59513 git-svn-id: http://core.svn.wordpress.org/trunk@58899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
afde562494
commit
880bce2ad5
@ -251,7 +251,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
);
|
||||
|
||||
$table = '<table class="update-from-upload-comparison"><tbody>';
|
||||
$table .= '<tr><th></th><th>' . esc_html_x( 'Active', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
|
||||
$table .= '<tr><th></th><th>' . esc_html_x( 'Installed', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
|
||||
|
||||
$is_same_theme = true; // Let's consider only these rows.
|
||||
|
||||
@ -333,7 +333,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
if ( $this->is_downgrading ) {
|
||||
$warning = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'You are uploading an older version of the installed theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
|
||||
);
|
||||
} else {
|
||||
@ -351,7 +351,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$install_actions['overwrite_theme'] = 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 ), 'theme-upload' ),
|
||||
_x( 'Replace active with uploaded', 'theme' )
|
||||
_x( 'Replace installed with uploaded', 'theme' )
|
||||
);
|
||||
} else {
|
||||
echo $blocked_message;
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59512';
|
||||
$wp_version = '6.8-alpha-59513';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user