[wp-trac] [WordPress Trac] #53940: Reconsider return types for `_get_cron_array()`.

WordPress Trac noreply at wordpress.org
Thu Jun 30 23:22:08 UTC 2022


#53940: Reconsider return types for `_get_cron_array()`.
------------------------------------------+---------------------
 Reporter:  peterwilsoncc                 |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  6.1
Component:  Cron API                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+---------------------
Changes (by peterwilsoncc):

 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => 6.1


Comment:

 I think this can be done and `_get_cron_array()` always return an array.

 It's a BC change but as zero scheduled tasks can currently either return
 `false` or an empty array I think it's an improvement.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53940#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list