Skip to:
Content

BuddyPress.org

Changeset 375 for trunk/bp-core.php


Ignore:
Timestamp:
10/09/2008 04:37:49 AM (18 years ago)
Author:
apeatling
Message:
  • Moved all group pages to the root, rather than using a member URL
  • Introduced groupmeta support - groups_update_groupmeta / groups_delete_groupmeta / groups_get_groupmeta
  • Added widgets for site wide activity and who's online
  • Updated home theme to support display of new BuddyPress widgets
  • Added site wide activity feed support
  • Fixed bug where ajax functions would only work when logged in
  • Various other bug fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r373 r375  
    108108        if ( !$bp['current_component'] )
    109109                $bp['current_component'] = $bp['default_component'];
    110 
    111110}
    112111add_action( 'wp', 'bp_core_setup_globals', 1 );
     
    213212 */
    214213function 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               
    220219        /* 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 ) )
    222221                return false; // return false if this is a normal blog, and not a user home.
    223222       
Note: See TracChangeset for help on using the changeset viewer.