From f16752240cff2c9768f1807d13a09d8115aeb093 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 13 Jun 2019 15:59:58 +0000 Subject: [PATCH] Add a Recovery Mode Exit button to the notice. This fixes it in responsive view. Props desrosj, karmatosed, chetan200891, afercia, afragen, garrett-eclipse. Fixes #47070. git-svn-id: https://develop.svn.wordpress.org/trunk@45529 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index d4c1dd6a07..03c98733cb 100644 --- a/src/wp-admin/includes/update.php +++ b/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 ); + ?>

- + Exit Recovery Mode' ), + esc_url( $url ) + ); + ?>