[wp-trac] [WordPress Trac] #50324: Can't create new blog in multisite if database insert happens on clean_site_cache
WordPress Trac
noreply at wordpress.org
Tue Jun 9 12:39:24 UTC 2020
#50324: Can't create new blog in multisite if database insert happens on
clean_site_cache
--------------------------------+-----------------------------
Reporter: trepmal | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Networks and Sites | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47932" 47932]:
{{{
#!CommitTicketReference repository="" revision="47932"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50324#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list