[wp-trac] [WordPress Trac] #11881: setup-config.php step 2 broken

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 15 14:32:06 UTC 2010

#11881: setup-config.php step 2 broken
 Reporter:  sivel            |       Owner:           
     Type:  defect (bug)     |      Status:  new      
 Priority:  normal           |   Milestone:  3.0      
Component:  Upgrade/Install  |     Version:  3.0      
 Severity:  major            |    Keywords:  has-patch

Comment(by nacin):

 I'm wondering that if instead of calling wp_default_constants() with
 context strings I came up with, we instead call it with an array of
 constant names to define.

 Potentially, setup-config.php could then be set up with
 {{{wp_default_constants( array('ABSPATH', 'WPINC', 'WP_CONTENT_DIR',
 'WP_DEBUG') );}}}.

 As in this case, some constants might need to be set up at different
 spots. Just trying to figure out the most forward thinking way of handling
 this. I was looking through other areas of the code from which we can pull
 constants into default-constants.php. This would make calls of
 wp_default_constants() more clear and easier to read, I'd think.

Ticket URL: <http://core.trac.wordpress.org/ticket/11881#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list