Fix issue of not listing duplicate cron events#3175
Conversation
|
Is there specific I need to do for WP 3.7? https://travis-ci.org/wp-cli/wp-cli/jobs/145729518#L304 |
Have you installed WP 3.7 locally and tested with it? |
|
No, I generally test with latest trunk in local. May be I need to setup WP 3.7 also. |
|
@danielbachhuber I tried PR in WP 3.7 and its working as expected in local environment. Any idea what could be the cause of failed build? |
Can you share more details on what you tried? |
|
I tried the PR in WP 3.7. Output is as expected. http://prntscr.com/bvr7z0 |
| foreach ( $hook_events as $sig => $data ) { | ||
|
|
||
| $events["$hook-$sig"] = (object) array( | ||
| $events["$hook-$sig-$time"] = (object) array( |
There was a problem hiding this comment.
Is this key actually used for anything, or could we always just add to the array?
There was a problem hiding this comment.
To make array key unique. I dont think it is used anywhere else.
There was a problem hiding this comment.
Right, but couldn't we instead do:
$events[] = (object) array(
Fixes #3170