Changeset 62178 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 03/30/2026 05:31:56 AM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r61074 r62178 41 41 * 42 42 * @param int $user_id The unique ID of the user 43 * @return WP_Site| voidThe blog object43 * @return WP_Site|object|null|false The blog object 44 44 */ 45 45 function get_active_blog_for_user( $user_id ) { 46 46 $blogs = get_blogs_of_user( $user_id ); 47 47 if ( empty( $blogs ) ) { 48 return ;48 return null; 49 49 } 50 50 … … 53 53 } 54 54 55 $primary = null; 55 56 $primary_blog = get_user_meta( $user_id, 'primary_blog', true ); 56 57 $first_blog = current( $blogs ); … … 101 102 } 102 103 } else { 103 return ;104 return null; 104 105 } 105 106 … … 2270 2271 * @type string $role The role to be assigned to the user. 2271 2272 * } 2272 * @return true|WP_Error| voidTrue on success or a WP_Error object if the user doesn't exist2273 * or could not be added. Voidif $details array was not provided.2273 * @return true|WP_Error|null True on success or a WP_Error object if the user doesn't exist 2274 * or could not be added. Null if $details array was not provided. 2274 2275 */ 2275 2276 function add_existing_user_to_blog( $details = false ) { … … 2291 2292 return $result; 2292 2293 } 2294 return null; 2293 2295 } 2294 2296
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)