PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php +12 -4 1.5.3 → trunk View file →
@@ -9,11 +9,14 @@
9 9 * Deprecated property @see $this->__wakeup() for details.
10 10 *
11 11 * @var null|DateTime
12 12 */
13 - private $timestamp = NULL;
13 + private $timestamp = null;
14 14
15 15 /**
16 + * Calculate when this schedule should start after a given date & time using
17 + * the number of seconds between recurrences.
18 + *
16 19 * @param DateTime $after Timestamp.
17 20 *
18 21 * @return DateTime|null
19 22 */
@@ -21,8 +24,10 @@
21 24 return null;
22 25 }
23 26
24 27 /**
28 + * Schedule is not recurring.
29 + *
25 30 * @return bool
26 31 */
27 32 public function is_recurring() {
28 33 return false;
@@ -46,11 +51,14 @@
46 51 $sleep_params = parent::__sleep();
47 52
48 53 $this->timestamp = $this->scheduled_timestamp;
49 54
50 - return array_merge( $sleep_params, array(
51 - 'timestamp',
52 - ) );
55 + return array_merge(
56 + $sleep_params,
57 + array(
58 + 'timestamp',
59 + )
60 + );
53 61 }
54 62
55 63 /**
56 64 * Unserialize recurring schedules serialized/stored prior to AS 3.0.0