From 6d3c3f466bf8b1907def2dbcdc55ecc4f6e19b24 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Wed, 15 Nov 2023 21:35:33 -0600 Subject: [PATCH] Re-id color-picker as wpa-admin This continues scripting other than the color picker now, so this isn't appropriate anymore. --- src/js/{color-picker.js => wpa-admin.js} | 0 src/wp-accessibility-settings.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/js/{color-picker.js => wpa-admin.js} (100%) diff --git a/src/js/color-picker.js b/src/js/wpa-admin.js similarity index 100% rename from src/js/color-picker.js rename to src/js/wpa-admin.js diff --git a/src/wp-accessibility-settings.php b/src/wp-accessibility-settings.php index b6454b9..ef33f8d 100644 --- a/src/wp-accessibility-settings.php +++ b/src/wp-accessibility-settings.php @@ -30,8 +30,8 @@ function wpa_admin_styles() { wp_enqueue_style( 'wpa-styles', plugins_url( 'css/wpa-styles.css', __FILE__ ), array( 'farbtastic' ), $version ); wp_enqueue_style( 'wp-color-picker' ); - // Switch to wp_add_inline_script when no longer supporting WP 4.4.x. - wp_enqueue_script( 'wpa-color-picker', plugins_url( 'js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), $version, true ); + // Enqueue WP Accessibility admin scripts. + wp_enqueue_script( 'wpa-admin', plugins_url( 'js/wpa-admin.js', __FILE__ ), array( 'wp-color-picker' ), $version, true ); } }