Skip to:
Content

BuddyPress.org

Changeset 5238


Ignore:
Timestamp:
10/11/2011 08:32:03 PM (10 years ago)
Author:
djpaul
Message:

Fix deprecated function notices with WP 3.3

Location:
trunk
Files:
2 edited

Legend:

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

    r5235 r5238  
    186186
    187187        // Make sure there's a user corresponding to $bp_uri[0]
    188         if ( !empty( $bp->pages->members ) && !empty( $bp_uri[0] ) && $root_profile = get_userdatabylogin( $bp_uri[0] ) ) {
     188        if ( !empty( $bp->pages->members ) && !empty( $bp_uri[0] ) && $root_profile = get_user_by( 'login', $bp_uri[0] ) ) {
    189189
    190190            // Force BP to recognize that this is a members page
  • trunk/bp-members/bp-members-functions.php

    r5233 r5238  
    658658 * @param $auth_obj The WP authorization object
    659659 * @param $username The username of the user logging in.
    660  * @uses get_userdatabylogin() Get the userdata object for a user based on their username
     660 * @uses get_user_by() Get the userdata object for a user based on their username
    661661 * @uses bp_core_redirect() Safe redirect to a page
    662662 * @return $auth_obj If the user is not a spammer, return the authorization object
     
    665665    global $bp;
    666666
    667     if ( !$user = get_userdatabylogin( $username ) )
     667    if ( !$user = get_user_by( 'login', $username ) )
    668668        return $auth_obj;
    669669
Note: See TracChangeset for help on using the changeset viewer.