[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 23:06:49 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 DD32):

 Replying to [comment:11 hakre]:
 > "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).

 Thats all i needed to know :)

 Its a good thing for the time-being, But i think we also need to encourage
 people who use >2.7 to remove the require from the wp-config.php file, the
 sooner thatsdone, the sooner plugins will change to stop using t, the
 sooner the constant wont even be needed.

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


More information about the wp-trac mailing list