[wp-trac] [WordPress Trac] #34913: Unscheduling cron jobs fails when original arguments were not an array.
WordPress Trac
noreply at wordpress.org
Thu Jul 10 20:51:59 UTC 2025
#34913: Unscheduling cron jobs fails when original arguments were not an array.
-------------------------------------------------+-------------------------
Reporter: jrf | Owner:
| johnjamesjacoby
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.9
Component: Cron API | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by johnjamesjacoby):
Replying to [comment:16 johnbillion]:
> Could we go one step further and return an error when attempting to
schedule an event with arguments that are not an array? What might the
impact be?
If we did that, plugins that are attempting to schedule events with non-
array arguments would start failing to have their jobs scheduled when
sites running them are upgraded to 6.9, we'd fill some error logs, and
eventually force-educate across the plugin ecosystem.
In my opinion, I'd rather not inconvenience site operators & hosts for
something WordPress itself did not previously prevent from happening,
especially for something as small as a type check, but I am open to
refreshing the patch if a different consensus happens.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34913#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list