You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EnqueuedScriptsScope: frontend/js/frontend.js#L1
This script is being loaded in all contexts.
seems to examine from front end, but script that is to be applied to all front end is limited by scope but warned public function enqueue_scripts() { if ( ! is_admin() ) { wp_enqueue_script( 'my-script', plugin_dir_url( __FILE__ ) . 'js/frontend.js', array(), $this->version, true ); } }
The text was updated successfully, but these errors were encountered:
Not sure I follow. The check is supposed to warn if you are loading a script on every single frontend page, and in your code snippet that's exactly what you are doing. So what's the issue?
EnqueuedScriptsScope: frontend/js/frontend.js#L1
This script is being loaded in all contexts.
seems to examine from front end, but script that is to be applied to all front end is limited by scope but warned
public function enqueue_scripts() { if ( ! is_admin() ) { wp_enqueue_script( 'my-script', plugin_dir_url( __FILE__ ) . 'js/frontend.js', array(), $this->version, true ); } }
The text was updated successfully, but these errors were encountered: