WordPress.org

Make WordPress Core

Changeset 22015


Ignore:
Timestamp:
09/26/12 17:02:44 (2 years ago)
Author:
ryan
Message:

Don't read from the switched global. Instead use _wp_switched_stack. switched is retained for back compat and should not be directly read since it is prone to stompage by plugins. see #21459

File:
1 edited

Legend:

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

    r21979 r22015  
    521521    global $wpdb, $wp_roles; 
    522522 
    523     if ( ! $GLOBALS['switched'] ) 
     523    if ( empty( $GLOBALS['_wp_switched_stack'] ) ) 
    524524        return false; 
    525525 
     
    581581 */ 
    582582function ms_is_switched() { 
    583     return $GLOBALS['switched']; 
     583    return ! empty( $GLOBALS['_wp_switched_stack'] ); 
    584584} 
    585585 
Note: See TracChangeset for help on using the changeset viewer.