Don't show _access_denied_splash() if the user has permissions for the site but insufficient perms for a particular page. Props sorich87. fixes #17514
git-svn-id: https://develop.svn.wordpress.org/trunk@18008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
40306508a3
commit
c9566759db
@ -502,6 +502,9 @@ function _access_denied_splash() {
|
||||
|
||||
$blogs = get_blogs_of_user( get_current_user_id() );
|
||||
|
||||
if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) )
|
||||
return;
|
||||
|
||||
$blog_name = get_bloginfo( 'name' );
|
||||
|
||||
if ( empty( $blogs ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user