[wp-trac] [WordPress Trac] #17092: use dirname(__file__).'/file.php' instead of './file' for includes

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 13 10:04:34 UTC 2011


#17092: use dirname(__file__).'/file.php' instead of './file' for includes
-----------------------------------+------------------------------
 Reporter:  ketwaroo               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  General                |     Version:  3.1.1
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by dd32):

 Looking through the patch, The only files which should be using dirname()
 are 'admin.php', 'wp-load.php', and 'wp-blog-header.php'. The rest should
 be using `ABSPATH . 'wp-admin/...'`

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


More information about the wp-trac mailing list