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

WordPress Trac noreply at wordpress.org
Fri Dec 13 05:04:00 UTC 2013


#26592: Allow ABSPATH to be set outside of wp-load.php
-----------------------------+-----------------------------
 Reporter:  jeichorn         |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  trunk
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 When wp-load.php is a symlink ABSPATH gets set to a value that works for
 most things but is incorrect.  The most obvious problem is paths to plugin
 assets will 404.  Rather than solve this immediate problem it seems easier
 to allow for ABSPATH to be set outside of wp-load.  That way it covers any
 other use cases and doesn't add a performance hit.

 Adding an "if (!defined('ABSPATH'))" before defining the value would cover
 things.

 It might be nice to also change wp-cron.php to check for a different
 constant, maybe even something like WP_LOADED, but its less important
 since its a special case that is easy to work around.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26592>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list