Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 08:58:56 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename new 'bp-users' component to 'bp-members' for consistency through-out project.
Core, Messages, and Friends Components now use the BP_Component class.
Split Friends and Messages components into smaller files.
Change references to 'profile' to 'xprofile' through-out project for consistency.
Introduce 'bp_actions' and 'bp_screens' standard hooks to replace the usage of 'wp' through-out project.
Move component loader sequence into bp-core-bootstrap.php,
Move old root_component action into 1.3 deprecated file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r3914 r3917  
    280280 */
    281281function bp_search_form_enabled() {
    282     if ( bp_is_active( 'profile' )
     282    if ( bp_is_active( 'xprofile' )
    283283         || bp_is_active( 'groups' )
    284284         || ( bp_is_active( 'blogs' ) && is_multisite() )
     
    311311    $options = array();
    312312
    313     if ( bp_is_active( 'profile' ) )
     313    if ( bp_is_active( 'xprofile' ) )
    314314        $options['members'] = __( 'Members', 'buddypress' );
    315315
     
    824824
    825825function bp_is_profile_component() {
    826     if ( bp_is_current_component( 'profile' ) )
     826    if ( bp_is_current_component( 'xprofile' ) )
    827827        return true;
    828828
     
    934934    global $bp;
    935935
    936     if ( bp_is_current_component( 'profile' ) )
     936    if ( bp_is_current_component( 'xprofile' ) )
    937937        return true;
    938938
     
    943943    global $bp;
    944944
    945     if ( bp_is_current_component( 'profile' ) && bp_is_current_action( 'edit' ) )
     945    if ( bp_is_current_component( 'xprofile' ) && bp_is_current_action( 'edit' ) )
    946946        return true;
    947947
     
    952952    global $bp;
    953953
    954     if ( bp_is_current_component( 'profile' ) && bp_is_current_action( 'change-avatar' ) )
     954    if ( bp_is_current_component( 'xprofile' ) && bp_is_current_action( 'change-avatar' ) )
    955955        return true;
    956956
     
    12401240        if ( !bp_is_blog_page() ) :
    12411241            if ( bp_is_user_profile() )
    1242                 $bp_classes[] = 'profile';
     1242                $bp_classes[] = 'xprofile';
    12431243
    12441244            if ( bp_is_activity_component() )
Note: See TracChangeset for help on using the changeset viewer.