Make WordPress Core

Changeset 21560


Ignore:
Timestamp:
08/20/2012 08:48:35 PM (12 years ago)
Author:
ryan
Message:

Introduce is_ms_switched(). see #21459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-blogs.php

    r21523 r21560  
    569569
    570570/**
     571 * Determines if switch_to_blog() is in effect
     572 *
     573 * @since 3.5.0
     574 *
     575 * @return bool True if switched, false otherwise.
     576 */
     577function is_ms_switched() {
     578    return $GLOBALS['_wp_switched'];
     579}
     580
     581/**
    571582 * Check if a particular blog is archived.
    572583 *
Note: See TracChangeset for help on using the changeset viewer.