[wp-trac] [WordPress Trac] #48878: 5.1 wp_insert_site bug
WordPress Trac
noreply at wordpress.org
Wed Dec 4 19:21:54 UTC 2019
#48878: 5.1 wp_insert_site bug
--------------------------------+------------------------------
Reporter: bikecrazyy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 5.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: multisite
--------------------------------+------------------------------
Changes (by jeremyfelt):
* keywords: => reporter-feedback
* focuses: => multisite
* component: General => Networks and Sites
Comment:
Hi @bikecrazyy, thanks for opening a ticket.
The site's database tables are added in `wp_initialize_site()`, which is
attached to the `wp_initialize_site` hook at the default priority and run
after the site is inserted into the `wp_blogs` table in
`wp_insert_site()`.
I haven't tested this myself, but you should be able to hook into
`wp_initialize_site` at a priority higher than 10 and the database tables
will be available.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48878#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list