Skip to:
Content

bbPress.org

Changeset 6241


Ignore:
Timestamp:
01/13/2017 07:07:01 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Users: more bbp_get_current_user_id() usages, and docs to explain why it's not used in some places.

Location:
trunk/src/includes/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r6197 r6241  
    597597
    598598        // User is looking at their own profile
    599         if ( get_current_user_id() === $the_user->ID ) {
     599        if ( bbp_get_current_user_id() === $the_user->ID ) {
    600600            $posts_query->bbp_is_single_user_home = true;
    601601        }
  • trunk/src/includes/core/update.php

    r6232 r6241  
    386386    }
    387387
    388     // Get the current user ID
     388    // Cannot use bbp_get_current_user_id() here, during activation process
    389389    $user_id = get_current_user_id();
     390
     391    // Get the current blog ID, to know if they should be promoted here
    390392    $blog_id = get_current_blog_id();
    391393
Note: See TracChangeset for help on using the changeset viewer.