Add "Accessibility Mode" for widgets screen (can be turned on from Screen Options). Add set_user_setting() to the UI state saving functions.

git-svn-id: https://develop.svn.wordpress.org/trunk@11503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-06-01 23:31:34 +00:00
parent f85291dc74
commit 997f1af1c8
8 changed files with 150 additions and 26 deletions
+9
View File
@@ -300,6 +300,15 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
exit;
}
$widgets_access = get_user_setting( 'widgets_access' );
if ( isset($_GET['widgets-access']) ) {
$widgets_access = 'on' == $_GET['widgets-access'] ? 'on' : 'off';
set_user_setting( 'widgets_access', $widgets_access );
}
if ( 'on' == $widgets_access )
add_filter( 'admin_body_class', create_function('', '{return " widgets_access ";}') );
$messages = array(
__('Changes saved.')
);