Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/29/2013 07:38:19 PM (8 years ago)
Author:
johnjamesjacoby
Message:

In bbp_get_user_id(), do not fallback to 'bbp_user_id' query variable, to prevent accidentally confusing a Guest (anonymous) user with the displayed user, in situations where empty bbp_get_user_id() checks are made. Fixes #2284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/template-tags.php

    r4802 r4831  
    5555        // Failsafe
    5656        } else {
    57             $bbp_user_id = get_query_var( 'bbp_user_id' );
     57            $bbp_user_id = 0;
    5858        }
    5959
     
    481481
    482482        // Validate user id
    483         $user_id = bbp_get_user_id( $user_id, false, false );
     483        $user_id = bbp_get_user_id( $user_id, true, false );
    484484
    485485        // User is not registered
Note: See TracChangeset for help on using the changeset viewer.