Changeset 5337
- Timestamp:
- 11/20/2011 12:30:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r5328 r5337 291 291 function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) { 292 292 global $wpdb; 293 294 if ( empty( $blog_id ) && isset( $wpdb->blogid ) ) 295 $blog_id = $wpdb->blogid; 296 else 297 $blog_id = bp_get_root_blog_id(); 293 294 if ( empty( $blog_id ) ) { 295 $blog_id = isset( $wpdb->blogid ) ? $wpdb->blogid : bp_get_root_blog_id(); 296 } 298 297 299 298 if ( empty( $role ) ) { … … 307 306 return false; 308 307 } 308 309 309 310 310 311 if ( $role != 'subscriber' )
Note: See TracChangeset
for help on using the changeset viewer.