[wp-trac] [WordPress Trac] #40948: Load meta files earlier in `wp-settings.php`

WordPress Trac noreply at wordpress.org
Thu Apr 19 08:17:39 UTC 2018


#40948: Load meta files earlier in `wp-settings.php`
----------------------------+------------------------
 Reporter:  flixos90        |       Owner:  flixos90
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  5.0
Component:  Bootstrap/Load  |     Version:
 Severity:  critical        |  Resolution:
 Keywords:  ms-roadmap      |     Focuses:  multisite
----------------------------+------------------------
Changes (by azaozz):

 * severity:  normal => critical


Comment:

 As Barry points out, shuffling load order is really dangerous and brings
 up edge cases. It shouldn't be done without unit tests...

 Should [42835] be reverted until all edge cases are fixed?

 Also, formatting.php shouldn't be needed for accessing the db. I'd rather
 move `sanitize_key()` or introduce a similar function than load a file
 that is clearly intended for formatting the PHP output while accessing the
 db.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40948#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list