WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2016 04:55:01 AM (3 years ago)
Author:
wonderboymusic
Message:

Multisite: use get_current_blog_id() where applicable, in lieu of plucking the $blog_id global from outer space.

See #37699.

File:
1 edited

Legend:

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

    r38275 r38457  
    105105    public static function fill_query_vars( $args ) {
    106106        $defaults = array(
    107             'blog_id' => $GLOBALS['blog_id'],
     107            'blog_id' => get_current_blog_id(),
    108108            'role' => '',
    109109            'role__in' => array(),
Note: See TracChangeset for help on using the changeset viewer.