mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,10 +90,10 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array()) {
|
||||
|
||||
$now = time();
|
||||
|
||||
if ( $timestamp >= $now )
|
||||
$timestamp = $now + $interval;
|
||||
else
|
||||
$timestamp = $now + ($interval - (($now - $timestamp) % $interval));
|
||||
if ( $timestamp >= $now )
|
||||
$timestamp = $now + $interval;
|
||||
else
|
||||
$timestamp = $now + ($interval - (($now - $timestamp) % $interval));
|
||||
|
||||
wp_schedule_event( $timestamp, $recurrence, $hook, $args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user