Changes between Initial Version and Version 2 of Ticket #50228
- Timestamp:
- 05/22/2020 09:11:04 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50228
-
Property
Component
changed from
General
toNetworks and Sites
-
Property
Component
changed from
-
Ticket #50228 – Description
initial v2 3 3 This is one example of an execution path that leads to an infinite loop, but there are probably several others. It can happen to any callback that tries to query a new site's tables after the `wp_insert_site` action, and before the `make_db_current_silent()` call inside `wp_initialize_site()`. 4 4 5 1. Creating a site in the UI or programatically calls eventually`wp_initialize_site()`5 1. Creating a new site in a Multisite network will eventually call `wp_initialize_site()` 6 6 1. That calls `switch_to_blog()` 7 7 1. A plugin could hook into the `switch_blog()` action, and call `get_locale()`.