Skip to content

Commit

Permalink
fixed localize scripts editor priority
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 20, 2023
1 parent 1d07638 commit e078972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function init_hooks() {
add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 11 );

// Localize script in editor, FSE, and Elementor.
add_action( 'enqueue_block_assets', array( $this, 'localize_scripts' ), 9 );
add_action( 'enqueue_block_assets', array( $this, 'localize_scripts' ) );
add_action( 'wp_print_scripts', array( $this, 'localize_scripts' ), 9 );
}

Expand Down

0 comments on commit e078972

Please sign in to comment.