Skip to content

Commit

Permalink
Fix cron event name in wp_next_scheduled()
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence committed Jun 17, 2016
1 parent a041ade commit e57f3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/lib/wp-session/wp-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ function clef_wp_session_cleanup() {
add_action( 'wp_session_garbage_collection', 'clef_wp_session_cleanup' );

/**
* Register the garbage collector as a twice daily event.
* Register the garbage collector.
*/
function clef_wp_session_register_garbage_collection() {
if ( ! wp_next_scheduled( 'wp_session_garbage_collection' ) ) {
if ( ! wp_next_scheduled( 'clef_wp_session_garbage_collection' ) ) {
wp_schedule_event( time(), 'hourly', 'clef_wp_session_garbage_collection' );
}
}
Expand Down

3 comments on commit e57f3bb

@vinerz
Copy link

@vinerz vinerz commented on e57f3bb Jun 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks God for this fix. My master db server exploded with 190GB of bin-log due to this typo, haha

@jessepollak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eesh - really sorry about that. this is now live!

@vinerz
Copy link

@vinerz vinerz commented on e57f3bb Jun 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem Jesse! I'm loving Clef! The fun thing is that I was going to fix that and submit a PR, but then I was checking the file name here and saw that it was already fixed 👯

Please sign in to comment.