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.
Merges [45529] to the 5.2 branch.
Fixes #47070.


git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45530 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
azaozz committed Jun 13, 2019
1 parent 30e6113 commit e02a7c7ac284ce58a9e0605e7bd76cb43bf7d5b9
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/wp-admin/includes/update.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

0 comments on commit e02a7c7

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