Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r25133 r26120  
    460460     */
    461461    function wp_getUsersBlogs( $args ) {
    462         global $current_site;
    463462        // If this isn't on WPMU then just use blogger_getUsersBlogs
    464463        if ( !is_multisite() ) {
     
    482481        foreach ( $blogs as $blog ) {
    483482            // Don't include blogs that aren't hosted at this site
    484             if ( $blog->site_id != $current_site->id )
     483            if ( $blog->site_id != get_current_site()->id )
    485484                continue;
    486485
Note: See TracChangeset for help on using the changeset viewer.