From e0789720d45b5d972214f03e07bda288fc24e9c2 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 21 Nov 2023 01:08:18 +0300 Subject: [PATCH] fixed localize scripts editor priority --- classes/class-preview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-preview.php b/classes/class-preview.php index 2434f439..af0992fa 100644 --- a/classes/class-preview.php +++ b/classes/class-preview.php @@ -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 ); }