Allow ABSPATH to be set outside of wp-load.php
|Reported by:||jeichorn||Owned by:|
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.