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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 18 21:15:17 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 kawauso):

 Re-did patch with `ABSPATH` except where necessary and caught some
 remaining relative paths.

 Took out changes to the external package file `wp-
 includes/js/tinymce/plugins/spellchecker/rpc.php`

 Noticed the use of `include()`, `require()` and `require_once()` for
 `admin-header.php` and `admin-footer.php` seems pretty inconsistent.

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


More information about the wp-trac mailing list