[wp-trac] [WordPress Trac] #26592: Allow ABSPATH to be set outside of wp-load.php

WordPress Trac noreply at wordpress.org
Thu Sep 11 19:07:57 UTC 2014


#26592: Allow ABSPATH to be set outside of wp-load.php
-----------------------------+----------------------
 Reporter:  jeichorn         |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Bootstrap/Load   |     Version:  3.8
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 I don't see a pressing need to support this. If you wanted, you could put
 a wp-config.php file in /wordpress/ or at / that simply includes the wp-
 config.php file from /username/current/. (You'd probably want a shared
 configuration anyway if you're already sharing all of the WordPress
 files.)

 I also don't see where you would define ABSPATH to be outside of wp-
 load.php. In wp-config.php? You're trying to ''find'' wp-config.php,
 that's why we need ABSPATH to begin with. wp-load.php is one of the first
 files included; there's no place for such a define to go.

 ABSPATH cannot be modified directly, and I'd like to keep it that way. It
 means less mistakes, less weirdness, less unsupported setups.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26592#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list