Unable activate plugin
-
I’m unable to activate plugin. I receive following error:
Parse error: syntax error, unexpected T_FUNCTION in cronjob-scheduler/cronjob-scheduler.php on line 411
I have PHP 5.2.17, if this help.
On my pc this plugin is awesome, but here I have PHP 5.6.
I think I have to convert this code to PHP5.2 compatibility:public function get_schedules () { $schedules = wp_get_schedules(); uasort($schedules, function ($a, $b) { // if schedules are the same return 0 if($a['interval'] == $b['interval']) return 0; // return comparison int return $a['interval'] < $b['interval'] ? -1 : 1; }); return $schedules; }
Please help
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Unable activate plugin’ is closed to new replies.