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:
parent
0a0d648660
commit
39e775daeb
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue