Make WordPress Core


Ignore:
Timestamp:
06/08/2023 02:16:48 PM (3 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-plugin-upgrader.php

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