[wp-trac] [WordPress Trac] #25068: Require relative to working directory, not file

WordPress Trac noreply at wordpress.org
Sun Aug 18 16:37:51 UTC 2013


#25068: Require relative to working directory, not file
--------------------------+------------------------
 Reporter:  hakre         |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.6
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------

Comment (by hakre):

 Replying to [comment:1 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.

 The patch is now on ticket #17092
 http://core.trac.wordpress.org/attachment/ticket/17092/17092.001.patch

 ABSPATH is now used as applicable.

 I'm through with it, please give it some traction it's a hell of a work.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25068#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list