| @@ -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 | } |