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 ); } }