WordPress.org

Make WordPress Core

Changeset 25689


Ignore:
Timestamp:
10/03/2013 01:35:12 PM (7 years ago)
Author:
ocean90
Message:

Move get_current_user_id() call out of if-block, see [25669].

props layotte.
fixes #25372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r25669 r25689  
    26872687        }
    26882688
     2689        $user_id = get_current_user_id();
     2690
    26892691        if ( ! empty( $q['post_status'] ) ) {
    26902692            $statuswheres = array();
     
    27132715                unset($p_status);
    27142716            }
    2715 
    2716             $user_id = get_current_user_id();
    27172717
    27182718            if ( !empty($e_status) ) {
Note: See TracChangeset for help on using the changeset viewer.