[wp-trac] [WordPress Trac] #25068: Require relative to working directory, not file
WordPress Trac
noreply at wordpress.org
Sun Aug 18 14:03:00 UTC 2013
#25068: Require relative to working directory, not file
--------------------------+------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nacin):
Looking good. A few points:
* `dirname( dirname( __FILE__ ) ) . '/foo'` is preferred to `dirname(
__FILE__ ) . '/../'`.
* Once the bootstrap is available, we should use `ABSPATH . 'wp-admin
/admin-footer.php;'` (et al), `ABSPATH . WPINC`, etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25068#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list