Networks and Sites: Ensure the site ID in `wp_insert_site()` is still correct...
Networks and Sites: Ensure the site ID in `wp_insert_site()` is still correct after calling `clean_blog_cache()`. By saving `$wpdb->insert_id` to a variable, we make sure the ID does not change if another database insert is performed on the `clean_site_cache` action. Props trepmal. Fixes #50324. Built from https://develop.svn.wordpress.org/trunk@47932 git-svn-id: https://core.svn.wordpress.org/trunk@47705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment