You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
The replacement of current_time('timestamp') to time() does work but is unnecessary.
At the beginning of the wp_update_plugins() call $new_option->last_checked = time() happens then at the bottom of the wp_update_plugins() call the $new_option value is saved as the update_plugins transient, which is when the check_update() and other plugin custom update calls happen, its not necessary to update the last_updated value again (currently incorrectly) to essentially the same value as it was when wp_update_plugins() call happened.
Hi @pippinsplugins
I am using EDD_SL_Plugin_Updater class in my plugins but It is being conflicted with Elegant Themes and Plugins.
After a deep debugging with EDD and Elegant themes, I found this code below
$_transient_data->last_checked = current_time( 'timestamp' );
works if I change the current_time( 'timestamp' ); to time();
time() is being used in wp_update_plugins() as well.
So, I think time() should be used instead of current_time( 'timestamp' ); at all places.
Looking forward,
The text was updated successfully, but these errors were encountered: