Skip to content

Commit

Permalink
Re-id color-picker as wpa-admin
Browse files Browse the repository at this point in the history
This continues scripting other than the color picker now, so this isn't appropriate anymore.
  • Loading branch information
joedolson committed Nov 16, 2023
1 parent 3b88f3f commit 6d3c3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/wp-accessibility-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 6d3c3f4

Please sign in to comment.