Issue user_admin_notices for user admin. Issue admin_notices only for blog admin. Issue all_admin_notices for all dashboards. see #14696

git-svn-id: http://svn.automattic.com/wordpress/trunk@16224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-06 17:40:12 +00:00
parent 0a0d648660
commit 39e775daeb
1 changed files with 6 additions and 9 deletions

View File

@ -172,17 +172,14 @@ $current_screen->parent_base = str_replace('.php', '', $current_screen->parent_b
<?php
screen_meta($current_screen);
if ( is_multisite() ) {
if ( is_network_admin() )
do_action('network_admin_notices');
else
do_action('site_admin_notices');
} else {
if ( is_network_admin() )
do_action('network_admin_notices');
do_action('site_admin_notices');
}
elseif ( is_user_admin() )
do_action('user_admin_notices');
else
do_action('admin_notices');
do_action('admin_notices');
do_action('all_admin_notices');
if ( $parent_file == 'options-general.php' )
require(ABSPATH . 'wp-admin/options-head.php');