[wp-trac] [WordPress Trac] #34913: Unscheduling cron jobs fails when original arguments were not an array.
WordPress Trac
noreply at wordpress.org
Wed Dec 9 18:36:24 UTC 2015
#34913: Unscheduling cron jobs fails when original arguments were not an array.
--------------------------------------+------------------------------
Reporter: jrf | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by jrf):
Oh and FYI - this patch also takes care of the following PHP warnings:
{{{
PHP Warning: array_slice() expects parameter 1 to be array, string given
in /wp-includes/plugin.php on line 601
PHP Stack trace:
PHP 1. {main}() /wp-cron.php:0
PHP 2. do_action_ref_array($tag = 'testing', $args = 'STRING SINGLE
Testing string arg') /wp-cron.php:117
PHP 3. array_slice('STRING SINGLE Testing string arg', 0, 1) /wp-
includes/plugin.php:601
PHP Warning: call_user_func_array() expects parameter 2 to be array, null
given in /wp-includes/plugin.php on line 601
PHP Stack trace:
PHP 1. {main}() /wp-cron.php:0
PHP 2. do_action_ref_array($tag = 'testing', $args = 'STRING SINGLE
Testing string arg') /wp-cron.php:117
PHP 3. call_user_func_array:{/wp-includes/plugin.php:601}('testing',
NULL) /wp-includes/plugin.php:601
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34913#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list