Make WordPress Core

Ticket #17514: 17514.diff

File 17514.diff, 431 bytes (added by sorich87, 15 years ago)

access_denied_splash() return if the user belongs to the current blog

  • wp-admin/includes/ms.php

     
    502502
    503503        $blogs = get_blogs_of_user( get_current_user_id() );
    504504
     505        if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) )
     506                return;
     507
    505508        $blog_name = get_bloginfo( 'name' );
    506509
    507510        if ( empty( $blogs ) )