Changeset 39589 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 12/12/2016 10:40:03 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r39054 r39589 3473 3473 3474 3474 $blogs = get_blogs_of_user( $user_id ); 3475 if ( ! is_super_admin() && empty($blogs) ) {3475 if ( is_multisite() && ! user_can( $user_id, 'manage_network' ) && empty($blogs) ) { 3476 3476 $url = user_admin_url( $path, $scheme ); 3477 3477 } elseif ( ! is_multisite() ) { … … 3479 3479 } else { 3480 3480 $current_blog = get_current_blog_id(); 3481 if ( $current_blog && ( is_super_admin( $user_id) || in_array( $current_blog, array_keys( $blogs ) ) ) ) {3481 if ( $current_blog && ( user_can( $user_id, 'manage_network' ) || in_array( $current_blog, array_keys( $blogs ) ) ) ) { 3482 3482 $url = admin_url( $path, $scheme ); 3483 3483 } else {
Note: See TracChangeset
for help on using the changeset viewer.