[wp-trac] [WordPress Trac] #9444: Problem: wp-admin/load-scripts.php can not use User-Configuration

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 2 18:41:50 GMT 2009


#9444: Problem: wp-admin/load-scripts.php can not use User-Configuration
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.7.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Normaly WordPress is configured by it's configuration file. It contains a
 bare minimum of configuration values and there are a lot of additional
 configuration values that help to properly use WordPress.

 One compontent of WordPress, namely the ''load-scripts.php'' file, does
 not reflect these settings.

 Because ''wp-config.php'' (the configuration file) includes ''wp-
 settings.php'' which bootstraps nearly the whole wordpress frontend,
 seperation is hard to achieve.

 it should be vice-versa. wp-config.php should contain the config values
 (as it is) and that file should be included. if additional includes should
 be needed by the main program flow, those can be included afterwards.
 there is no need that the config file includes further program code.

 this should not be so hard to achieve because there because as far as I've
 seen there is only one place where wp-settings.php is actually included
 (''wp-load.php'').

 removing the include command from wp-settings.php and putting it into wp-
 load.php directly after the include of wp-settings.php should create the
 base to include wp-settings.php in other files like wp-admin/load-
 scripts.php.

 load-scripts.php can then reflect the setting of configuration constants
 like SCRIPT_DEBUG

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9444>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list