summaryrefslogtreecommitdiffstats
path: root/wp-includes/ms-blogs.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
commit30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch)
tree39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-includes/ms-blogs.php
parentAdding upstream version 6.4.3+dfsg1. (diff)
downloadwordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz
wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/ms-blogs.php')
-rw-r--r--wp-includes/ms-blogs.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php
index eddb99c..b9575b3 100644
--- a/wp-includes/ms-blogs.php
+++ b/wp-includes/ms-blogs.php
@@ -480,8 +480,7 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) {
* This function is useful if you need to pull posts, or other information,
* from other blogs. You can switch back afterwards using restore_current_blog().
*
- * Things that aren't switched:
- * - plugins. See #14941
+ * PHP code loaded with the originally requested site, such as code from a plugin or theme, does not switch. See #14941.
*
* @see restore_current_blog()
* @since MU (3.0.0)
@@ -566,6 +565,7 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
'site-options',
'site-queries',
'site-transient',
+ 'theme_files',
'rss',
'users',
'user-queries',
@@ -659,6 +659,7 @@ function restore_current_blog() {
'site-options',
'site-queries',
'site-transient',
+ 'theme_files',
'rss',
'users',
'user-queries',