I18N: Move the "WordPress Backups" support URL to its own translatable string.
Follow-up to [48390]. See #9757. git-svn-id: https://develop.svn.wordpress.org/trunk@48447 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8c2443d171
commit
b161e126a0
@ -282,9 +282,17 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
|
||||
if ( $can_update ) {
|
||||
if ( $this->is_downgrading ) {
|
||||
$warning = __( 'You are uploading an older version of a current plugin. 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 plugin. 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 plugin. 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 plugin. 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>';
|
||||
|
@ -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>';
|
||||
|
@ -247,7 +247,12 @@ function core_upgrade_preamble() {
|
||||
|
||||
if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
|
||||
echo '<div class="notice notice-warning"><p>';
|
||||
_e( '<strong>Important:</strong> Before updating, please <a href="https://wordpress.org/support/article/wordpress-backups/">back up your database and files</a>. For help with updates, visit the <a href="https://wordpress.org/support/article/updating-wordpress/">Updating WordPress</a> documentation page.' );
|
||||
printf(
|
||||
/* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */
|
||||
__( '<strong>Important:</strong> Before updating, please <a href="%1$s">back up your database and files</a>. For help with updates, visit the <a href="%2$s">Updating WordPress</a> documentation page.' ),
|
||||
__( 'https://wordpress.org/support/article/wordpress-backups/' ),
|
||||
__( 'https://wordpress.org/support/article/updating-wordpress/' )
|
||||
);
|
||||
echo '</p></div>';
|
||||
|
||||
echo '<h2 class="response">';
|
||||
|
Loading…
Reference in New Issue
Block a user