[wp-trac] [WordPress Trac] #37118: Move call of get_blog_details() inside of ms_site_check()

WordPress Trac noreply at wordpress.org
Thu Jun 16 22:56:25 UTC 2016


#37118: Move call of get_blog_details() inside of ms_site_check()
-----------------------------+-----------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  4.6
Component:  Bootstrap/Load   |    Version:
 Severity:  normal           |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------
 `get_blog_details()` is unnecessarily called at the top of
 `ms_site_check()`. It should be called when the blog's details are
 actually needed.

 When a non-web context is bypassing `ms_site_check()` using the
 `ms_site_check` filter, the call to `get_blog_details()` causes a MySQL
 error notice when WordPress isn't yet installed.

 Related #34936
 From https://github.com/wp-cli/wp-cli/issues/2278#issuecomment-226634504

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


More information about the wp-trac mailing list