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

Follow-up to [48390].

See #9757.
Built from https://develop.svn.wordpress.org/trunk@48447


git-svn-id: http://core.svn.wordpress.org/trunk@48216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2020-07-12 10:34:05 +00:00
parent 3f1650122a
commit f83b8775b3
4 changed files with 27 additions and 6 deletions

View File

@@ -311,9 +311,17 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
if ( $can_update ) {
if ( $this->is_downgrading ) {
$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.' );
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( '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.' ),
__( 'https://wordpress.org/support/article/wordpress-backups/' )
);
} else {
$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.' );
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
__( 'https://wordpress.org/support/article/wordpress-backups/' )
);
}
echo '<p class="update-from-upload-notice">' . $warning . '</p>';