From 1f41391ba20b4b1122779d97d1e084bbf8acf6d4 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Tue, 26 Mar 2024 08:20:24 -0600 Subject: [PATCH] Add another dependency to our optimizer script to ensure it runs properly in the Classic Editor --- includes/optimizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/optimizer.php b/includes/optimizer.php index e795e6e2..268211be 100644 --- a/includes/optimizer.php +++ b/includes/optimizer.php @@ -121,7 +121,7 @@ public function enqueues( $hook ) { wp_enqueue_script( 'safe-svg-admin-scripts', SAFE_SVG_PLUGIN_URL . 'dist/safe-svg-admin.js', - [ 'wp-data', 'utils' ], + [ 'wp-data', 'wp-editor', 'utils' ], SAFE_SVG_VERSION, true );