"Execute" function does not work
-
It looks like the changes made for v1.3.1 of the plugin, affected manual execution of cron jobs.
do_action_ref_array($params[‘task’], $params[‘args’]);
Throws an error when $params[‘args’] is not an array. It seems that the args are passed through via ajax as a string?Either way, args should be an empty array() if none are specified for that task.
Also, I’m not sure if it’s a good idea to pass arguments via ajax. I would think about getting them from _get_cron_array() inside the execute_task() function. Otherwise you have to be really careful about the serialization/unserealization of the args.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘"Execute" function does not work’ is closed to new replies.