{"comment":{"url":"https://api.github.com/repos/ericandrewlewis/WP_Query_Multisite/comments/11535598","html_url":"https://github.com/ericandrewlewis/WP_Query_Multisite/commit/ee18e6fe526938b6b7a2477896214226dbef6b04#commitcomment-11535598","id":11535598,"user":{"login":"blarsen","id":835279,"avatar_url":"https://avatars.githubusercontent.com/u/835279?v=3","gravatar_id":"","url":"https://api.github.com/users/blarsen","html_url":"https://github.com/blarsen","followers_url":"https://api.github.com/users/blarsen/followers","following_url":"https://api.github.com/users/blarsen/following{/other_user}","gists_url":"https://api.github.com/users/blarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/blarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blarsen/subscriptions","organizations_url":"https://api.github.com/users/blarsen/orgs","repos_url":"https://api.github.com/users/blarsen/repos","events_url":"https://api.github.com/users/blarsen/events{/privacy}","received_events_url":"https://api.github.com/users/blarsen/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"ee18e6fe526938b6b7a2477896214226dbef6b04","created_at":"2015-06-05T06:50:55Z","updated_at":"2015-06-05T06:50:55Z","body":"I'm a bit confused by this commit. Here you remove the switch_to_blog( $site_ID ), which causes $wpdb->prefix to stay at the displayed site's prefix, resulting in selects against only this site's post table - and thus the code doesn't work on multiple sites at all."}}