[wp-trac] [WordPress Trac] #39764: 'pre_get_site_by_path' filter is called before plugin API is loaded

WordPress Trac noreply at wordpress.org
Thu Feb 2 00:53:44 UTC 2017


#39764: 'pre_get_site_by_path' filter is called before plugin API is loaded
----------------------------+-----------------------------
 Reporter:  Veraxus         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  4.6
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 The `pre_get_site_by_path` hook is called during the MS initialization
 process before the plugin API is loaded, which unfortunately means that
 this hook is orphaned and cannot be used.

 Use case: Configure MS to allow multiple network TLDs, e.g. example.com
 and example.org – however, MS will return a DB connection error if the
 requested/defined domain does not match a site registered in the wp_blogs
 table. In attempting to use this hook to forcibly fetch the correct site
 is impossible because plugins are not available before this hook is
 executed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39764>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list