Changeset 29588
- Timestamp:
- 08/24/2014 05:56:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r29336 r29588 968 968 $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); 969 969 970 switch ( $this-> id) {970 switch ( $this->base ) { 971 971 case 'widgets': 972 972 $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"; 973 break; 974 case 'post' : 975 $expand = '<div class="editor-expand hidden"><label for="editor-expand-toggle">'; 976 $expand .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />'; 977 $expand .= __( 'Expand the editor to match the window height.' ) . '</label></div>'; 978 $this->_screen_settings = $expand; 973 979 break; 974 980 default: … … 1111 1117 endfor; ?> 1112 1118 </div> 1113 <div class="editor-expand hidden">1114 <label for="editor-expand-toggle">1115 <input type="checkbox" id="editor-expand-toggle" <?php checked( get_user_setting( 'editor_expand', 'on' ) === 'on' ); ?> />1116 <?php _e( 'Expand the editor to match the window height.' ); ?></label>1117 </div>1118 1119 <?php 1119 1120 }
Note: See TracChangeset
for help on using the changeset viewer.