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-classes.php

    r3909 r3917  
    5656     */
    5757    function populate() {
    58         if ( bp_is_active( 'profile' ) )
     58        if ( bp_is_active( 'xprofile' ) )
    5959            $this->profile_data = $this->get_profile_data();
    6060
     
    124124        $sql['from'] = "FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN " . CUSTOM_USER_META_TABLE . " um ON um.user_id = u.ID";
    125125
    126         if ( $search_terms && bp_is_active( 'profile' ) || 'alphabetical' == $type )
     126        if ( $search_terms && bp_is_active( 'xprofile' ) || 'alphabetical' == $type )
    127127            $sql['join_profiledata'] = "LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id";
    128128
     
    167167        }
    168168
    169         if ( $search_terms && bp_is_active( 'profile' ) ) {
     169        if ( $search_terms && bp_is_active( 'xprofile' ) ) {
    170170            $search_terms             = like_escape( $wpdb->escape( $search_terms ) );
    171171            $sql['where_searchterms'] = "AND pd.value LIKE '%%$search_terms%%'";
     
    349349
    350350        // Fetch the user's full name
    351         if ( bp_is_active( 'profile' ) && 'alphabetical' != $type ) {
     351        if ( bp_is_active( 'xprofile' ) && 'alphabetical' != $type ) {
    352352            // Ensure xprofile globals are set
    353353            if ( !defined( 'BP_XPROFILE_FULLNAME_FIELD_NAME' ) )
Note: See TracChangeset for help on using the changeset viewer.