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/user.php

    r38406 r38457  
    965965 * @since 2.3.0
    966966 * @since 4.5.0 Added the 'display_name_with_login' value for 'show'.
    967  *
    968  * @global int  $blog_id
    969967 *
    970968 * @param array|string $args {
     
    10171015        'show' => 'display_name', 'echo' => 1,
    10181016        'selected' => 0, 'name' => 'user', 'class' => '', 'id' => '',
    1019         'blog_id' => $GLOBALS['blog_id'], 'who' => '', 'include_selected' => false,
     1017        'blog_id' => get_current_blog_id(), 'who' => '', 'include_selected' => false,
    10201018        'option_none_value' => -1
    10211019    );
Note: See TracChangeset for help on using the changeset viewer.