Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #50228


Ignore:
Timestamp:
05/22/2020 09:11:04 PM (5 years ago)
Author:
iandunn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50228

    • Property Component changed from General to Networks and Sites
  • Ticket #50228 – Description

    initial v2  
    33This 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()`.
    44
    5 1. Creating a site in the UI or programatically calls eventually `wp_initialize_site()`
     51. Creating a new site in a Multisite network will eventually call `wp_initialize_site()`
    661. That calls `switch_to_blog()`
    771. A plugin could hook into the `switch_blog()` action, and call `get_locale()`.