wp-color-picker error
-
When I enabled Scrollbar plugin on my WP site built on Roots Bedrock & Roots Sage theme, I get an error, which points to the plugin’s themepoints_scrollbar_script() function (line 30, hooked to init), which enqueues wp-color-picker on the frontend, but WordPress only registers that script in the admin area.
Wrapping those two lines in is_admin() condition solves the error.
You must be logged in to reply to this topic.