Make WordPress Core


Ignore:
Timestamp:
06/08/2023 02:16:48 PM (2 years ago)
Author:
audrasjb
Message:

Upgrade/Install: Improve WP_Upgrader strings rendering on small screens.

This changeset adds a pre class to "Downloading update from…" user facing strings located in Core_Upgrader, Language_Pack_Upgrader, Plugin_Upgrader and
Theme_Upgrader classes.

Follow-up to [11295].

Props sumitsingh, costdev.
Fixes #58477.

File:
1 edited

Legend:

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

    r55824 r55899  
    5757        $this->strings['no_package'] = __( 'Update package not available.' );
    5858        /* translators: %s: Package URL. */
    59         $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
     59        $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
    6060        $this->strings['unpack_package']      = __( 'Unpacking the update&#8230;' );
    6161        $this->strings['remove_old']          = __( 'Removing the old version of the theme&#8230;' );
     
    7373        $this->strings['no_package'] = __( 'Installation package not available.' );
    7474        /* translators: %s: Package URL. */
    75         $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code">%s</span>' );
     75        $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code pre">%s</span>' );
    7676        $this->strings['unpack_package']      = __( 'Unpacking the package&#8230;' );
    7777        $this->strings['installing_package']  = __( 'Installing the theme&#8230;' );
Note: See TracChangeset for help on using the changeset viewer.