Changeset 12728 for trunk/wp-admin/admin-header.php
- Timestamp:
- 01/15/2010 04:58:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r12702 r12728 29 29 wp_admin_css( 'css/ms' ); 30 30 wp_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 else45 $typenow = '';46 31 47 32 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); … … 120 105 </div> 121 106 122 <?php favorite_actions($ hook_suffix); ?>107 <?php favorite_actions($current_screen); ?> 123 108 </div> 124 109 </div> 125 110 126 111 <div id="wpbody"> 127 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?> 112 <?php 113 require(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 ?> 128 119 129 120 <div id="wpbody-content"> 130 121 <?php 131 screen_meta($ hook_suffix);122 screen_meta($current_screen); 132 123 133 124 do_action('admin_notices');
Note: See TracChangeset
for help on using the changeset viewer.