Introduce is_ms_switched(). see #21459
git-svn-id: http://core.svn.wordpress.org/trunk@21560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9377523bce
commit
21782ca444
|
@ -567,6 +567,17 @@ function restore_current_blog() {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if switch_to_blog() is in effect
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @return bool True if switched, false otherwise.
|
||||
*/
|
||||
function is_ms_switched() {
|
||||
return $GLOBALS['_wp_switched'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a particular blog is archived.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue