Skip to content

Commit

Permalink
Merge pull request #1084 from crstauf/fix/1082
Browse files Browse the repository at this point in the history
Fix - Allows pre_as_enqueue_async_action callbacks to see if the action about to be scheduled should be unique.
  • Loading branch information
barryhughes authored Aug 12, 2024
2 parents cc041aa + 91f770d commit 7335514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ function as_enqueue_async_action( $hook, $args = array(), $group = '', $unique =
* @param array $args Action arguments.
* @param string $group Action group.
* @param int $priority Action priority.
* @param bool $unique Unique action.
*/
$pre = apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority );
$pre = apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique );
if ( null !== $pre ) {
return is_int( $pre ) ? $pre : 0;
}
Expand Down

0 comments on commit 7335514

Please sign in to comment.