Make WordPress Core


Ignore:
Timestamp:
06/01/2009 11:31:34 PM (16 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/widgets.php

    r11450 r11503  
    301301}
    302302
     303$widgets_access = get_user_setting( 'widgets_access' );
     304if ( isset($_GET['widgets-access']) ) {
     305    $widgets_access = 'on' == $_GET['widgets-access'] ? 'on' : 'off';
     306    set_user_setting( 'widgets_access', $widgets_access );
     307}
     308
     309if ( 'on' == $widgets_access )
     310    add_filter( 'admin_body_class', create_function('', '{return " widgets_access ";}') );
     311
    303312$messages = array(
    304313    __('Changes saved.')
Note: See TracChangeset for help on using the changeset viewer.