[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:17:41 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 |
-----------------------------------+---------------------
Changes (by nacin):
* owner: => nacin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"25616"]:
{{{
#!CommitTicketReference repository="" revision="25616"
Don't rely on include_path to include files.
Always use dirname() or, once available, ABSPATH.
props ketwaroo, hakre.
fixes #17092.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17092#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list