Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2011 06:52:57 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces bp_x_user_meta() wrapper functions. Refactors internal user_meta calls to use the new functions. Fixes #3299

File:
1 edited

Legend:

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

    r4462 r4558  
    137137     * @uses bp_core_get_userlink() Returns a HTML formatted link for a user with the user's full name as the link text
    138138     * @uses bp_core_get_user_email() Returns the email address for the user based on user ID
    139      * @uses get_user_meta() WordPress function returns the value of passed usermeta name from usermeta table
     139     * @uses bp_get_user_meta() BP function returns the value of passed usermeta name from usermeta table
    140140     * @uses bp_core_fetch_avatar() Returns HTML formatted avatar for a user
    141141     * @uses bp_profile_last_updated_date() Returns the last updated date for a user.
     
    167167        $this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb' ) );
    168168        $this->avatar_mini  = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'width' => 30, 'height' => 30 ) );
    169         $this->last_active  = bp_core_get_last_activity( get_user_meta( $this->id, bp_get_user_meta_key( 'last_activity' ), true ), __( 'active %s ago', 'buddypress' ) );
     169        $this->last_active  = bp_core_get_last_activity( bp_get_user_meta( $this->id, 'last_activity', true ), __( 'active %s ago', 'buddypress' ) );
    170170    }
    171171
Note: See TracChangeset for help on using the changeset viewer.