[wp-trac] [WordPress Trac] #21072: CRON often returns ambiguous values
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 26 02:18:28 UTC 2012
#21072: CRON often returns ambiguous values
-------------------------+-----------------------------
Reporter: evansolomon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
Many of the cron API functions return ambiguous values. For example,
`wp_cron()` [http://core.trac.wordpress.org/browser/tags/3.4/wp-
includes/cron.php#L251 returns] `null` (explicitly) when cron doesn't run,
but it also returns `null` (implicitly) every other time. This can make
debugging harder.
Whenever possible, I think it's valuable to return meaningful values. The
attached patch does that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21072>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list