From a3ccce0f0fcc1dfd3c6de09e163697d579cbb257 Mon Sep 17 00:00:00 2001 From: "Aaron D. Campbell" Date: Wed, 11 Jan 2017 01:46:15 +0000 Subject: [PATCH] Add nonce for widget accessibility mode. Props vortfu. See #23328. Merges [39760] to 4.3 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@39765 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/screen.php | 3 ++- src/wp-admin/widgets.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/screen.php b/src/wp-admin/includes/screen.php index fba5dc9da0..e3f978896a 100644 --- a/src/wp-admin/includes/screen.php +++ b/src/wp-admin/includes/screen.php @@ -1004,7 +1004,8 @@ final class WP_Screen { switch ( $this->base ) { case 'widgets': - $this->_screen_settings = '

' . __('Enable accessibility mode') . '' . __('Disable accessibility mode') . "

\n"; + $nonce = wp_create_nonce( 'widgets-access' ); + $this->_screen_settings = '

' . __('Enable accessibility mode') . '' . __('Disable accessibility mode') . "

\n"; break; case 'post' : $expand = '