Skip to:
Content

BuddyPress.org

Changeset 7119


Ignore:
Timestamp:
05/28/2013 03:07:38 AM (11 years ago)
Author:
boonebgorges
Message:

Pass $user_nicename to bp_core_get_userid_from_nicename filter

Fixes #4975

Props megainfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r6990 r7119  
    210210        return false;
    211211
    212     return apply_filters( 'bp_core_get_userid_from_nicename', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->users} WHERE user_nicename = %s", $user_nicename ) ) );
     212    return apply_filters( 'bp_core_get_userid_from_nicename', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->users} WHERE user_nicename = %s", $user_nicename ) ), $user_nicename );
    213213}
    214214
Note: See TracChangeset for help on using the changeset viewer.