Changes between Initial Version and Version 1 of Ticket #26592, comment 9
- Timestamp:
- 04/06/2016 04:12:12 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26592, comment 9
initial v1 1 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 ABSPATHdefine 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.1 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.