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: http://svn.automattic.com/wordpress/trunk@18008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
666e71d69b
commit
2e2807147c
|
@ -502,6 +502,9 @@ function _access_denied_splash() {
|
||||||
|
|
||||||
$blogs = get_blogs_of_user( get_current_user_id() );
|
$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' );
|
$blog_name = get_bloginfo( 'name' );
|
||||||
|
|
||||||
if ( empty( $blogs ) )
|
if ( empty( $blogs ) )
|
||||||
|
|
Loading…
Reference in New Issue