Ticket #18863: 18863.2.diff
File 18863.2.diff, 3.3 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-form-advanced.php
do_action('do_meta_boxes', $post_type, 'normal', $post); 159 159 do_action('do_meta_boxes', $post_type, 'advanced', $post); 160 160 do_action('do_meta_boxes', $post_type, 'side', $post); 161 161 162 $current_screen->add_option('layout_columns', array('max' => 2, 'default' => 'auto') );162 $current_screen->add_option('layout_columns', array('max' => 2, 'default' => 2) ); 163 163 164 164 $current_screen->add_option_context( 165 165 '<p>test</p>' -
wp-admin/edit-link-form.php
do_action('do_meta_boxes', 'link', 'normal', $link); 37 37 do_action('do_meta_boxes', 'link', 'advanced', $link); 38 38 do_action('do_meta_boxes', 'link', 'side', $link); 39 39 40 $current_screen->add_option('layout_columns', array('max' => 2, 'default' => 'auto') );40 $current_screen->add_option('layout_columns', array('max' => 2, 'default' => 2) ); 41 41 42 42 $current_screen->add_option_context( 43 43 '<p>test</p>' -
wp-admin/includes/screen.php
final class WP_Screen { 672 672 $screen_layout_columns = get_user_option("screen_layout_$this->id"); 673 673 $num = $this->_options['layout_columns']['max']; 674 674 675 if ( ! $screen_layout_columns ) {675 if ( ! $screen_layout_columns || 'auto' == $screen_layout_columns ) { 676 676 if ( isset( $this->_options['layout_columns']['default'] ) ) 677 677 $screen_layout_columns = $this->_options['layout_columns']['default']; 678 else679 $screen_layout_columns = 'auto';680 678 } 681 679 682 680 ?> … … final class WP_Screen { 692 690 </label> 693 691 <?php 694 692 endfor; ?> 695 <label>696 <input type='radio' id='wp_auto_columns' name='screen_columns' value='auto'697 <?php checked( $screen_layout_columns, 'auto' ); ?> />698 <?php esc_html_e('Auto'); ?>699 </label>700 693 </div> 701 694 <?php 702 695 } -
wp-admin/index.php
$parent_file = 'index.php'; 25 25 if ( is_user_admin() ) 26 26 $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 1) ); 27 27 else 28 $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 'auto') );28 $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 2) ); 29 29 30 30 $current_screen->add_option_context( 31 31 '<p>test</p>' -
wp-admin/network/index.php
wp_enqueue_script( 'dashboard' ); 38 38 wp_enqueue_script( 'plugin-install' ); 39 39 add_thickbox(); 40 40 41 $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 'auto') );41 $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 4) ); 42 42 43 43 $current_screen->add_option_context( 44 44 '<p>test</p>'