Ticket #21334: 21334-3.diff
File 21334-3.diff, 2.2 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/screen.php
904 904 case 'widgets': 905 905 $this->_screen_settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n"; 906 906 break; 907 case 'edit-post': 908 $this->_screen_settings = '<p><a id="access-on" href="edit.php?edit-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="edit.php?edit-access=off">' . __('Disable accessibility mode') . "</a></p>\n"; 909 break; 907 910 } 908 911 909 912 if ( $this->_screen_settings || $this->_options ) -
wp-admin/edit.php
24 24 $wp_list_table = _get_list_table('WP_Posts_List_Table'); 25 25 $pagenum = $wp_list_table->get_pagenum(); 26 26 27 $edit_access = get_user_setting( 'edit_access' ); 28 if ( isset($_GET['edit-access']) ) { 29 $edit_access = 'on' == $_GET['edit-access'] ? 'on' : 'off'; 30 set_user_setting( 'edit_access', $edit_access ); 31 } 32 33 function wp_edit_access_body_class($classes) { 34 return "$classes edit_access "; 35 } 36 37 if ( 'on' == $edit_access ) { 38 add_filter( 'admin_body_class', 'wp_edit_access_body_class' ); 39 } 40 27 41 // Back-compat for viewing comments of an entry 28 42 foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) { 29 43 if ( ! empty( $_REQUEST[ $_redirect ] ) ) { -
wp-admin/css/wp-admin.css
8309 8309 .widgets_access .widget-action, 8310 8310 .widgets_access .sidebar-name-arrow, 8311 8311 .widgets_access #access-on, 8312 .edit_access #access-on, 8312 8313 .widgets_access .widget-holder .description { 8313 8314 display: none; 8314 8315 } … … 8318 8319 padding-top: 10px; 8319 8320 } 8320 8321 8322 .edit_access .row-actions{ 8323 visibility: visible; 8324 } 8325 8326 .edit_access #access-off, 8321 8327 .widgets_access #access-off { 8322 8328 display: inline; 8323 8329 }