Changeset 59738 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 01/30/2025 11:20:58 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r59574 r59738 77 77 $blogs = get_blogs_of_user( $user_id, true ); // If a user's primary blog is shut down, check their other blogs. 78 78 $ret = false; 79 79 80 if ( is_array( $blogs ) && count( $blogs ) > 0 ) { 81 $current_network_id = get_current_network_id(); 82 80 83 foreach ( (array) $blogs as $blog_id => $blog ) { 81 if ( get_current_network_id() !== $blog->site_id ) {84 if ( $blog->site_id !== $current_network_id ) { 82 85 continue; 83 86 } … … 100 103 return; 101 104 } 105 102 106 return $ret; 103 107 } else {
Note: See TracChangeset
for help on using the changeset viewer.