Skip to content

Fix Network_Container::site_exists() querying wrong database table#1312

Open
jbrejcha wants to merge 14 commits intohtmlburger:developmentfrom
jbrejcha:fix/network-container-site-exists
Open

Fix Network_Container::site_exists() querying wrong database table#1312
jbrejcha wants to merge 14 commits intohtmlburger:developmentfrom
jbrejcha:fix/network-container-site-exists

Conversation

@jbrejcha
Copy link
Copy Markdown

get_blog_status() expects a blog_id from the wp_blogs table, but site_exists() receives a network site_id from wp_site. This causes valid network IDs to fail validation when they do not match any blog ID.

Fix queries wp_site directly.

Fixes #1304

@jbrejcha jbrejcha changed the base branch from master to development April 11, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network_Container incorrectly validates site_id using blog_id check

5 participants