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

WordPress Trac noreply at wordpress.org
Wed Apr 6 16:11:33 UTC 2016


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

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Going to reopen this one.  I would like to define `ABSPATH` outside of
 WordPress as well - in my case I would like to define it in something
 loaded via `auto_prepend_file`.  It's possible today, but because of the
 lack of a `defined()` check in `wp-load.php` we generate PHP Notices.   I
 don't really see any harm in wrapping the ABSPATH define in `wp-load.php`
 in a `if ( !defined('ABSPATH') )` check like it is in `wp-config-
 sample.php`  Defining `ABSPATH` outside of WordPress in my use case
 actually leads to less complexity, not more.

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


More information about the wp-trac mailing list