Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Change the way the plugin detectes enqued files.

$
0
0

Replies: 0

As of today your plugin checks for the existence of a file by checking if they are in the $wp_styles->registered list.
Some authors register their styles and scripts but not always enqueue them, so this plugin ends up not loading the necessary stylesheets.

The solution for that might by using wp_script_is inside wpfai_check_css.

For now I’m forcing the loading by adding wp_register_style( 'wpfai_font-awesome'... etc to my functions files.

Best regards.


Viewing all articles
Browse latest Browse all 59525

Trending Articles