Skip to content

Commit

Permalink
Micro-optimization for pushing events into the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Apr 30, 2023
1 parent c704572 commit 6036a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function initialize_listeners() {
*/
public function push( Event $event ) {
do_action( 'nfd_event_log', $event->key, $event );
array_push( $this->queue, $event );
$this->queue[] = $event;
}

/**
Expand Down

0 comments on commit 6036a1c

Please sign in to comment.