From 30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:57:26 +0200 Subject: Adding upstream version 6.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/ms-blogs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wp-includes/ms-blogs.php') 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', -- cgit v1.2.3