Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/10/2013 04:39:35 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Update some usages of bbp_get_user_id() to fallback to displayed user, if available. Props alex-ye. Fixes #2285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/capabilities.php

    r4831 r4840  
    112112
    113113    // Validate user id
    114     $user_id = bbp_get_user_id( $user_id, false, false );
     114    $user_id = bbp_get_user_id( $user_id );
    115115    $user    = get_userdata( $user_id );
    116116    $role    = false;
     
    146146
    147147    // Validate user id
    148     $user_id   = bbp_get_user_id( $user_id, false, false );
     148    $user_id   = bbp_get_user_id( $user_id );
    149149    $user      = get_userdata( $user_id );
    150150    $role      = false;
Note: See TracChangeset for help on using the changeset viewer.