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/template-tags.php

    r4831 r4840  
    266266
    267267        // Bail if no user ID passed
    268         $user_id = bbp_get_user_id( $user_id, false, false );
     268        $user_id = bbp_get_user_id( $user_id );
    269269        if ( empty( $user_id ) )
    270270            return false;
     
    481481
    482482        // Validate user id
    483         $user_id = bbp_get_user_id( $user_id, true, false );
     483        $user_id = bbp_get_user_id( $user_id );
    484484
    485485        // User is not registered
Note: See TracChangeset for help on using the changeset viewer.