Make WordPress Core

Changeset 59513


Ignore:
Timestamp:
12/13/2024 11:51:14 PM (2 months ago)
Author:
audrasjb
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-theme-installer-skin.php

    r59159 r59513  
    252252
    253253        $table  = '<table class="update-from-upload-comparison"><tbody>';
    254         $table .= '<tr><th></th><th>' . esc_html_x( 'Active', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
     254        $table .= '<tr><th></th><th>' . esc_html_x( 'Installed', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
    255255
    256256        $is_same_theme = true; // Let's consider only these rows.
     
    334334                $warning = sprintf(
    335335                    /* translators: %s: Documentation URL. */
    336                     __( '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.' ),
     336                    __( '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.' ),
    337337                    __( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
    338338                );
     
    352352                '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
    353353                wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
    354                 _x( 'Replace active with uploaded', 'theme' )
     354                _x( 'Replace installed with uploaded', 'theme' )
    355355            );
    356356        } else {
Note: See TracChangeset for help on using the changeset viewer.