Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Introduce is_ms_switched(). see #21459

git-svn-id: http://core.svn.wordpress.org/trunk@21560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 21782ca444448ddc5a071c21c5f96129e49bca84 1 parent 9377523
Ryan Boren authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 wp-includes/ms-blogs.php
View
11 wp-includes/ms-blogs.php
@@ -568,6 +568,17 @@ function restore_current_blog() {
}
/**
+ * 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.
*
* @since MU
Please sign in to comment.
Something went wrong with that request. Please try again.