[wp-trac] [WordPress Trac] #14545: move wp-settings from wp-config to wp-load

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 5 23:44:44 UTC 2010


#14545: move wp-settings from wp-config to wp-load
-------------------------+--------------------------------------------------
 Reporter:  wpmuguru     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.0.1          
 Severity:  normal       |    Keywords:  has-patch      
-------------------------+--------------------------------------------------

Comment(by nacin):

 This isn't backwards compatible... More than a few plugins call wp-
 config.php directly, hence the additional conditional ABSPATH define. This
 used to be the proper way to deeply integrate, now you should use either
 wp-load or wp-blog-header depending on your objective, or in most cases
 admin-ajax or admin-post. wp-load was created specifically so wp-config
 can be moved up one directory, so WP can be used as an SVN external.

 The only way to handle this is to deliberately define certain constants as
 false where defining the constant will not produce incompatibilities with
 plugins. For example, [14000].

 Additionally, this is more of an education thing. The line says don't add
 anything past it. What else can we do?

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


More information about the wp-trac mailing list