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

WordPress Trac noreply at wordpress.org
Wed Sep 25 00:18:53 UTC 2013


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

Comment (by nacin):

 [25616] was done after reviewing each instance to ensure there were no
 typos.

 The only issues were a few dirname() calls when ABSPATH could be used
 instead, isolated to wp-admin/revison.php wp-admin/options-permalink.php
 wp-admin/themes.php wp-admin/widgets.php. Nice work.

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


More information about the wp-trac mailing list