The typical answer to anything switch_to_blog() is — no it shouldn’t, yes it is a mess. Simply put WP architecture doesn’t posses the capability of making such clean switch from one blog to another in the runtime. It’s a bit of wishful thinking — some things work, some very much break.
In your specific case it is a little puzzling why would query–related hooks fire, since the switch itself shouldn’t involve querying posts. The most reliable would be to dump how they are called up, for example using wp_debug_backtrace_summary().
Related Posts:
- How can I trust switch_to_blog()?
- Sharing Dynamic Sidebars across Multisite Blogs
- Hook filter to change wp_upload_dir() path in multisite
- latest 5 posts using switch_to_blog loop
- WordPress 3.2(Multisite) – How to add custom user meta fields to signup form?
- Switch_to_blog() outside wordpress
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- Upload images from one site to another in Multisite
- Limit entries number on network/sites.php
- What is the way to share data between sites in a multisite
- get post id by $content (so by post content)
- Cannot use pre_set_site_transient_update_themes from within a theme in multisite
- Register submenu on network menu from the subsite
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- Include Site 1 Posts in Query for Sub Sites
- Sort posts according to date
- Multisite switch to blog
- Best Practise: Linking to WPMU sites from other sites
- Trouble with SQL SELECT inside switch_to_blog()
- Display posts from one network site on another
- Get variable from previous blog while using switch_to_blog
- Shared upload folder in wordpress multisite with custom sub site domain pictures URL:s
- switch_to_blog($blog_id); still writing to main blog
- fatal Error undefined function switch_to_blog()
- How to get all pages on specific blog after switch_to_blog?
- Access from template info of another blog (in the same network)
- How to disable style filtering in post?
- Get the excerpt by page ID from another blog in a wordpress multisite?
- The wpmu_blogs_columns filter is not working
- Redirect to Multisite site 2 if site 1 has a setting
- Memory growth with new additions to WordPress Multisite
- How to disable a network enabled plugin for just one site?
- Plugin for editing options on multisite?
- How to share WordPress core library
- Set default avatar network-wide
- wp-activate.php causing white screen of death
- Programmatically create blogs with dummy content on a WPMU site
- Change wordpress Multisite default site from side id 1 to side id 2
- How can I have network sites not use year/month folders by default?
- 4 single sites VS multisite wordpress
- Multisite: Develop locally using production images with .htaccess
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Two-level multisites in WordPress
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- Display custom homepage text based on domain
- Add new domain to ‘My Sites’ using network admin
- Is there an advantage of using multisite if I have multiple WordPress websites for myself?
- How do I set a default theme in multisite network
- WordPress Multisite Login Access
- Jetpack Blog Subscriptions on Multisite [closed]
- current_user_can(‘Administrator’) does not return true in multisite if user is Administrator but NOT Super Admin
- Multisite use language code as subdirectory
- How to remove the Tools menu item from the WP-Admin menu
- cant enable theme in multisite
- Sub-subdomain getting redirected to main domain
- Using $wpdb Class to Pull Recent Comments Across a Network
- Default content for a new site in multi site
- Proper Network Activation problem has been fixed in wp 3.3.1 or not?
- On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What’s better?
- WordPress (+WPMU) Import/Export ALL settings?
- wordpress htaccess is hijacking my .mp4 files
- Is there a way to separate a site inside a network (multisite) into its own wp site?
- How to know if a site is using Multisite?
- How to work on a live WPMS blog when domain is unresolved? [closed]
- How do you load WordPress from an external script when using MultiSite? [duplicate]
- Has WP and MU fully merged?
- Why is ‘is_multisite’ returning true when it’s a single install?
- How can I delete a user from entire multisite nework
- Using A Shared/Common Theme Across Multiple Sites
- Hook up MU site creation
- Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation
- Forcing SSL Protocol for Multisite Subdomain Child Sites + cPanel Configuration
- Website DR using Multisite
- Multisite Network menu links not updating
- Activate Child Theme with Codex
- current_user_can() always returns true if user is super admin
- multisite hook for Add Existing User
- Displaying a message upon user registration
- WPML tables not deleted when removing multisite subsite, need help clearing up my sql-file! [closed]
- Why does my multisite blog doesn’t show users?
- access the plugins for each role in WordPress multisite
- What sites are you registered to when joining a multisite?
- ERR_TOO_MANY_REDIRECTS IN MULTISITE NETWORK DASHBOARD
- How to redirect one page on the subdomain
- WordPress Multisite new sites in directory
- add_rewrite_rule on multisite doesn’t work
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- How to configure Multisite Network with randomized hostnames?
- wp_insert_site() is triggering database error in a unit test
- Multisite: How to get a list of installed languages
- “You must be logged in to comment” but I am already logged in
- Is the Multi site functionality a viable option for Country and Language targeting?
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- WordPress Multisite Redirection Issue
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- Multisite user roles – capabilities not working
- WordPress: how to change URL for individual MultiSites?
- Change main site in multisite install?
- Login problems on multisite installation with different domains