X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..4ea0dca21bda49aab5ccb91ec12bb4ef5924ed3e:/wp-admin/includes/class-wp-screen.php?ds=sidebyside diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php index ebd20b89..96787591 100644 --- a/wp-admin/includes/class-wp-screen.php +++ b/wp-admin/includes/class-wp-screen.php @@ -418,9 +418,7 @@ final class WP_Screen { } /** - * Sets the old string-based contextual help for the screen. - * - * For backwards compatibility. + * Sets the old string-based contextual help for the screen for backward compatibility. * * @since 3.3.0 * @@ -722,7 +720,7 @@ final class WP_Screen { /** * Render the screen's help section. * - * This will trigger the deprecated filters for backwards compatibility. + * This will trigger the deprecated filters for backward compatibility. * * @since 3.3.0 * @@ -731,7 +729,7 @@ final class WP_Screen { public function render_screen_meta() { /** - * Filter the legacy contextual help list. + * Filters the legacy contextual help list. * * @since 2.7.0 * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or @@ -745,7 +743,7 @@ final class WP_Screen { $old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : ''; /** - * Filter the legacy contextual help text. + * Filters the legacy contextual help text. * * @since 2.7.0 * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or @@ -762,7 +760,7 @@ final class WP_Screen { if ( empty( $old_help ) && ! $this->get_help_tabs() ) { /** - * Filter the default legacy contextual help text. + * Filters the default legacy contextual help text. * * @since 2.8.0 * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or @@ -851,10 +849,10 @@ final class WP_Screen { // Setup layout columns /** - * Filter the array of screen layout columns. + * Filters the array of screen layout columns. * * This hook provides back-compat for plugins using the back-compat - * filter instead of add_screen_option(). + * Filters instead of add_screen_option(). * * @since 2.8.0 * @@ -917,7 +915,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 = '