[wp-trac] Re: [WordPress Trac] #9444: Allow to read wp-config.php without loading WP

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 4 20:56:07 GMT 2009


#9444: Allow to read wp-config.php without loading WP
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  anonymous                    
     Type:  defect (bug)  |      Status:  new                          
 Priority:  normal        |   Milestone:  2.8                          
Component:  General       |     Version:  2.7.1                        
 Severity:  normal        |    Keywords:  has-patch tested dev-feedback
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [comment:7 DD32]:
 > What functionalities in the script loader requires wp-config.php to be
 loaded?
 > [...] Its designed for core-usage only.

 "Functionalities" are the configuration variables. script loader (''wp-
 admin/load-scripts.php'') is using a library (''wp-includes/script-
 loader.php'') that reads configuration variables (for example
 SCRIPT_DEBUG, but others as well) that you normally set in wp-config.php
 (see function wp_default_scripts() in there).

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


More information about the wp-trac mailing list