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

WordPress Trac noreply at wordpress.org
Wed Aug 18 03:08:01 UTC 2021


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

Comment (by jrf):

 Replying to [comment:4 peterwilsoncc]:
 > There are a [https://wpdirectory.net/search/01FDB9W74DP9KWCZ2G0A86D38X
 few plugins in the repository using it directly], but a check of those
 with over 100,000 installs shows that many assume it's always an array and
 those that don't would be unaffected by such a change.

 Verified and I concur, though it is painful to see that some of those huge
 plugins are ''doing it wrong''.

 > Yeah, I saw that while cleaning the house on the weekend. It's what
 prompted me to start thinking whether it should always return an array.

 That's wonderful to hear! Hoping that we'll be able to inspire many more
 improvements via those live streams in the future 💗

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


More information about the wp-trac mailing list