[wp-trac] [WordPress Trac] #40646: Move code from `ms-settings.php` into functions

WordPress Trac noreply at wordpress.org
Wed May 3 10:03:19 UTC 2017


#40646: Move code from `ms-settings.php` into functions
--------------------------------+------------------------------------------
 Reporter:  flixos90            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch needs-unit-tests
  Focuses:  multisite           |
--------------------------------+------------------------------------------
 As briefly discussed during yesterday's office-hours, it would be a good
 idea to move most of the bootstrap code from `ms-settings.php` into
 separate functions. `ms_load_current_site_and_network()` which was added
 in [37475] was a good first step in that direction. Let's introduce
 further functions (possibly small units) to make `ms-settings.php` less
 complex and more functionality testable.

 Once `ms-settings.php` becomes more lightweight, we may even think about
 removing that file and handling all of it in `wp-settings.php`, as this
 would give a better overview of the entire core bootstrapping process.

 This ticket is a subticket for #40623.

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


More information about the wp-trac mailing list