Make WordPress Core


Ignore:
Timestamp:
07/12/2020 10:32:57 AM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move the "WordPress Backups" support URL to its own translatable string.

Follow-up to [48390].

See #9757.

File:
1 edited

Legend:

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

    r48446 r48447  
    312312        if ( $can_update ) {
    313313            if ( $this->is_downgrading ) {
    314                 $warning = __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     314                $warning = sprintf(
     315                    /* translators: %s: Documentation URL. */
     316                    __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
     317                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     318                );
    315319            } else {
    316                 $warning = __( 'You are updating a theme. Be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     320                $warning = sprintf(
     321                    /* translators: %s: Documentation URL. */
     322                    __( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
     323                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     324                );
    317325            }
    318326
Note: See TracChangeset for help on using the changeset viewer.