Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2011 11:03:05 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Rename internal references to 'xprofile' component to 'profile' for object consistency and proper fallback support for when XProfile is disabled and the WP profile steps in. Move more code out of core and into Users and XProfile components. Split bp-xprofile-loader up into smaller files and convert to BP_Component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-loader.php

    r3778 r3790  
    432432
    433433        // Fetch fullname for the topic's last poster
    434         if ( bp_is_active( 'xprofile' ) ) {
     434        if ( bp_is_active( 'profile' ) ) {
    435435                $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT t.topic_id, pd.value FROM {$bp->profile->table_name_data} pd, {$bbdb->topics} t WHERE pd.user_id = t.topic_last_poster AND pd.field_id = 1 AND t.topic_id IN ( {$topic_ids} )" ) );
    436436                for ( $i = 0; $i < count( $topics ); $i++ ) {
     
    550550
    551551        // Fetch fullname for each poster.
    552         if ( bp_is_active( 'xprofile' ) ) {
     552        if ( bp_is_active( 'profile' ) ) {
    553553                $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT pd.user_id, pd.value FROM {$bp->profile->table_name_data} pd WHERE pd.user_id IN ( {$user_ids} )" ) );
    554554                for ( $i = 0; $i < count( $posts ); $i++ ) {
Note: See TracChangeset for help on using the changeset viewer.