mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
Introduce is_ms_switched(). see #21459
git-svn-id: https://develop.svn.wordpress.org/trunk@21560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user