Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/08/2015 10:28:43 PM (7 years ago)
Author:
djpaul
Message:

Remove some of our unused/dead variable assignments.

Identified by scrutinizer-ci.com; https://scrutinizer-ci.com/g/buddypress/BuddyPress/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-admin.php

    r9315 r9318  
    218218     */
    219219    private function get_user_id() {
    220 
    221         // No user ID to start
    222         $user_id = 0;
     220        $user_id = get_current_user_id();
    223221
    224222        // We'll need a user ID when not on the user admin
    225223        if ( ! empty( $_GET['user_id'] ) ) {
    226224            $user_id = $_GET['user_id'];
    227 
    228         // Assume the current user ID
    229         } else {
    230             $user_id = get_current_user_id();
    231225        }
    232226
Note: See TracChangeset for help on using the changeset viewer.