Make WordPress Core


Ignore:
Timestamp:
08/28/2006 11:08:48 PM (18 years ago)
Author:
ryan
Message:

Add page specific admin_head action. Add admin_print_scripts actions.

File:
1 edited

Legend:

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

    r3999 r4120  
    1111
    1212get_admin_page_title();
     13
    1314?>
    1415<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    2526<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
    2627<style type="text/css">* html { overflow-x: hidden; }</style>
    27 <?php endif; wp_print_scripts(); do_action('admin_head'); ?>
     28<?php endif;
     29if ( isset($page_hook) )
     30    do_action('admin_print_scripts-' . $page_hook);
     31else if ( isset($plugin_page) )
     32    do_action('admin_print_scripts-' . $plugin_page);
     33do_action('admin_print_scripts');
     34
     35if ( isset($page_hook) )
     36    do_action('admin_head-' . $page_hook);
     37else if ( isset($plugin_page) )
     38    do_action('admin_head-' . $plugin_page);
     39do_action('admin_head');
     40?>
    2841</head>
    2942<body>
Note: See TracChangeset for help on using the changeset viewer.