Add action "admin_enqueue_scripts" to make it easy for plugins to queue JavaScript and CSS for specific admin pages

git-svn-id: http://svn.automattic.com/wordpress/trunk@10364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-15 07:43:35 +00:00
parent 7b2265e598
commit 45c7401c79

View File

@ -50,6 +50,7 @@ else if ( isset($plugin_page) )
else if ( isset($pagenow) )
$hook_suffix = "$pagenow";
do_action('admin_enqueue_scripts', $hook_suffix);
do_action("admin_print_styles-$hook_suffix");
do_action('admin_print_styles');
do_action("admin_print_scripts-$hook_suffix");