Changeset 12597 for trunk/wp-admin/includes/template.php
- Timestamp:
- 01/04/2010 04:58:43 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r12596 r12597 3483 3483 3484 3484 function screen_meta($screen) { 3485 global $wp_meta_boxes, $_wp_contextual_help ;3485 global $wp_meta_boxes, $_wp_contextual_help, $typenow; 3486 3486 3487 3487 $screen = str_replace('.php', '', $screen); … … 3492 3492 $column_screens = get_column_headers($screen); 3493 3493 $meta_screens = array('index' => 'dashboard'); 3494 3495 // Give post_type pages their own screen 3496 if ( 'post' == $screen ) { 3497 if ( !empty($typenow) ) 3498 $screen = $typenow; 3499 } 3494 3500 3495 3501 if ( isset($meta_screens[$screen]) ) … … 3676 3682 3677 3683 $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2); 3684 3685 // Add custom post types 3686 foreach ( get_post_types( array('_show' => true) ) as $post_type ) 3687 $columns[$post_type] = 2; 3688 3678 3689 $columns = apply_filters('screen_layout_columns', $columns, $screen); 3679 3690 … … 3755 3766 3756 3767 if ( empty($name) ) { 3757 if ( isset($parent_file) && !empty($parent_file) ) 3758 $name = substr($parent_file, 0, -4); 3768 if ( isset($parent_file) && !empty($parent_file) ) { 3769 $name = $parent_file; 3770 if ( false !== $pos = strpos($name, '?post_type=') ) 3771 $name = substr($name, 0, $pos); 3772 $name = substr($name, 0, -4); 3773 } 3759 3774 else 3760 3775 $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)