Make WordPress Core


Ignore:
Timestamp:
01/15/2010 04:58:36 PM (15 years ago)
Author:
ryan
Message:

Merge edit-pages.php into edit.php. see #9674

File:
1 edited

Legend:

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

    r12702 r12728  
    2929    wp_admin_css( 'css/ms' );
    3030wp_enqueue_script('utils');
    31 
    32 $hook_suffix = '';
    33 if ( isset($page_hook) )
    34     $hook_suffix = $page_hook;
    35 else if ( isset($plugin_page) )
    36     $hook_suffix = $plugin_page;
    37 else if ( isset($pagenow) )
    38     $hook_suffix = $pagenow;
    39 
    40 if ( isset($submenu_file) && (false !== $pos = strpos($submenu_file, 'post_type=')) )
    41     $typenow = substr($submenu_file, $pos + 10);
    42 elseif ( isset($parent_file) && (false !== $pos = strpos($parent_file, 'post_type=')) )
    43     $typenow = substr($parent_file, $pos + 10);
    44 else
    45     $typenow = '';
    4631
    4732$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
     
    120105</div>
    121106
    122 <?php favorite_actions($hook_suffix); ?>
     107<?php favorite_actions($current_screen); ?>
    123108</div>
    124109</div>
    125110
    126111<div id="wpbody">
    127 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
     112<?php
     113require(ABSPATH . 'wp-admin/menu-header.php');
     114
     115$current_screen->parent_file = $parent_file;
     116$current_screen->parent_base = preg_replace('/\?.*$/', '', $parent_file);
     117$current_screen->parent_base = str_replace('.php', '', $current_screen->parent_base);
     118?>
    128119
    129120<div id="wpbody-content">
    130121<?php
    131 screen_meta($hook_suffix);
     122screen_meta($current_screen);
    132123
    133124do_action('admin_notices');
Note: See TracChangeset for help on using the changeset viewer.