PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
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/functions.php +4 -2 1.5.1 → 1.7.7 View file →
@@ -34,10 +34,11 @@
34 34 * @param string $hook Action hook.
35 35 * @param array $args Action arguments.
36 36 * @param string $group Action group.
37 37 * @param int $priority Action priority.
38 + * @param bool $unique Unique action.
38 39 */
39 - $pre = apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority );
40 + $pre = apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique );
40 41 if ( null !== $pre ) {
41 42 return is_int( $pre ) ? $pre : 0;
42 43 }
43 44
@@ -125,8 +126,9 @@
125 126 $interval = (int) $interval_in_seconds;
126 127
127 128 // We expect an integer and allow it to be passed using float and string types, but otherwise
128 129 // should reject unexpected values.
130 + // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
129 131 if ( ! is_numeric( $interval_in_seconds ) || $interval_in_seconds != $interval ) {
130 132 _doing_it_wrong(
131 133 __METHOD__,
132 134 sprintf(
@@ -454,9 +456,9 @@
454 456 foreach ( $ids as $action_id ) {
455 457 $actions[ $action_id ] = $store->fetch_action( $action_id );
456 458 }
457 459
458 - if ( ARRAY_A == $return_format ) {
460 + if ( ARRAY_A === $return_format ) {
459 461 foreach ( $actions as $action_id => $action_object ) {
460 462 $actions[ $action_id ] = get_object_vars( $action_object );
461 463 }
462 464 }