Don't show _access_denied_splash() for network admin pages. Props sorich87. fixes #17511

git-svn-id: https://develop.svn.wordpress.org/trunk@18009 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-05-23 23:11:03 +00:00
parent c9566759db
commit ab6db3e04f

View File

@ -497,7 +497,7 @@ function sync_category_tag_slugs( $term, $taxonomy ) {
add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
function _access_denied_splash() {
if ( ! is_user_logged_in() )
if ( ! is_user_logged_in() || is_network_admin() )
return;
$blogs = get_blogs_of_user( get_current_user_id() );