Changeset 375 for trunk/bp-core.php
- Timestamp:
- 10/09/2008 04:37:49 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r373 r375 108 108 if ( !$bp['current_component'] ) 109 109 $bp['current_component'] = $bp['default_component']; 110 111 110 } 112 111 add_action( 'wp', 'bp_core_setup_globals', 1 ); … … 213 212 */ 214 213 function bp_core_get_current_userid() { 215 global $current_blog ;216 217 /* Get the ID of the current blog being viewed. */218 $blog_id = $current_blog->blog_id;219 214 global $current_blog, $current_user; 215 216 if ( $current_blog->blog_id == 1 ) 217 return $current_user->ID; 218 220 219 /* Check to see if this is a user home, and if it is, get the user id */ 221 if ( !$current_userid = bp_core_get_homebase_userid( $ blog_id ) )220 if ( !$current_userid = bp_core_get_homebase_userid( $current_blog->blog_id ) ) 222 221 return false; // return false if this is a normal blog, and not a user home. 223 222
Note: See TracChangeset
for help on using the changeset viewer.