Don't show _access_denied_splash() for network admin pages. Props sorich87. fixes #17511
git-svn-id: http://svn.automattic.com/wordpress/trunk@18009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2e2807147c
commit
9aeffe1487
|
@ -497,7 +497,7 @@ function sync_category_tag_slugs( $term, $taxonomy ) {
|
||||||
add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
|
add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
|
||||||
|
|
||||||
function _access_denied_splash() {
|
function _access_denied_splash() {
|
||||||
if ( ! is_user_logged_in() )
|
if ( ! is_user_logged_in() || is_network_admin() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$blogs = get_blogs_of_user( get_current_user_id() );
|
$blogs = get_blogs_of_user( get_current_user_id() );
|
||||||
|
|
Loading…
Reference in New Issue