Skip to content
Permalink
Browse files

Add a Recovery Mode Exit button to the notice. This fixes it in respo…

…nsive view.

Props desrosj, karmatosed, chetan200891, afercia, afragen, garrett-eclipse.
Fixes #47070.
Built from https://develop.svn.wordpress.org/trunk@45529


git-svn-id: http://core.svn.wordpress.org/trunk@45340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
azaozz committed Jun 13, 2019
1 parent 7be747f commit 727838a11bc7e347daa2e4ee42fb17cc96543cb1
Showing with 12 additions and 2 deletions.
  1. +11 −1 wp-admin/includes/update.php
  2. +1 −1 wp-includes/version.php
@@ -841,10 +841,20 @@ function wp_recovery_mode_nag() {
return;
}
$url = wp_login_url();
$url = add_query_arg( 'action', WP_Recovery_Mode::EXIT_ACTION, $url );
$url = wp_nonce_url( $url, WP_Recovery_Mode::EXIT_ACTION );
?>
<div class="notice notice-info">
<p>
<?php esc_html_e( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button.' ); ?>
<?php
printf(
/* translators: %s: Recovery Mode exit link */
__( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button. <a href="%s">Exit Recovery Mode</a>' ),
esc_url( $url )
);
?>
</p>
</div>
<?php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45527';
$wp_version = '5.3-alpha-45529';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 comments on commit 727838a

Please sign in to comment.
You can’t perform that action at this time.