flot.min.js conflict with woocommerce and WP pro ad
-
Hi,
I found a conflict with this plugin and WP Pro Ads System plugin statistics interface, actually, it appears that Google Analyticator is enqueuing the flot.js library using the same handle name of Woocommerce (“flot”), I hope this fix get implemented in a future release:
/** * Add the scripts to the admin **/ function addJavascript() { # Include the Sparklines graphing library if (wp_script_is("flot", "registered")) { return; } else { wp_enqueue_script('flot', plugins_url('/google-analyticator/jquery.flot.min.js'), array( 'jquery' ), '1.5.1'); } }
Any other fix to prevent this issue is more than welcome and thank you ??
- The topic ‘flot.min.js conflict with woocommerce and WP pro ad’ is closed to new replies.