[wp-trac] [WordPress Trac] #17092: use dirname(__file__).'/file.php' instead of './file' for includes
WordPress Trac
noreply at wordpress.org
Sun Dec 16 12:17:35 UTC 2012
#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 ace_dent):
+1 for patching wp-cron.
Users opting for 'proper' cron jobs may follow a guide like:
http://bit51.com/stop-wp-cron-wordpress-cron-jobs-from-firing-on-every-
page-load/
Here wp-cron is being called without ABSPATH and can then fail due to
server restrictions/ incorrect path being returned.
Safer to use the proposed method here ...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17092#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list