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:
parent
3f1650122a
commit
f83b8775b3
|
@ -282,9 +282,17 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
|
|
||||||
if ( $can_update ) {
|
if ( $can_update ) {
|
||||||
if ( $this->is_downgrading ) {
|
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 {
|
} 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>';
|
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 ( $can_update ) {
|
||||||
if ( $this->is_downgrading ) {
|
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 {
|
} 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>';
|
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, '>' ) ) {
|
if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
|
||||||
echo '<div class="notice notice-warning"><p>';
|
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 '</p></div>';
|
||||||
|
|
||||||
echo '<h2 class="response">';
|
echo '<h2 class="response">';
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-beta1-48446';
|
$wp_version = '5.5-beta1-48447';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue