Onklo
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Hi Auke
Version 0.11 works fine on my testsite. On my livesite I can’t use anything newer than version 0.8.
Newer versions still have a conflict with qTranslate-X on my livesite, even though the two sites are identical. And I can’t load your feed-editor with version 0.11
Go figure…Thanks, but your scripts are still loading on other admin pages, and I still get errors with qTranslate-X when I edit content.
I am keeping my function for now.I found a solution: Disable the plugin´s javascript everywhere except on the admin-pages for the plugin.
You might want to make the plugin only load scripts where they are needed?In functions.php:
//DISABLE WP PRODUCT FEED MANAGER JAVASCRIPT function products_feed_mananger_dequeue_script() { //Check if the path of the current page starts with '/wp-admin/admin.php?page=wp-product-feed-manager' //If it doesn´t dequeue the plugin´s javascript: $pagepath = $_SERVER['REQUEST_URI'] ; if (0 !== strpos($pagepath, '/wp-admin/admin.php?page=wp-product-feed-manager')) { wp_dequeue_script( 'feed-form-script'); wp_dequeue_script( 'data-handling-script'); wp_dequeue_script( 'object-handling-script'); wp_dequeue_script( 'data-script'); wp_dequeue_script( 'feed-objects-script'); wp_dequeue_script( 'feed-meta-script'); wp_dequeue_script( 'feed-handling-script'); wp_dequeue_script( 'feed-html'); wp_dequeue_script( 'feed-list-script'); wp_dequeue_script( 'feed-form-script'); wp_dequeue_script( 'user-interface-script'); wp_dequeue_script( 'business-logic-script'); wp_dequeue_script( 'general-functions-script'); wp_dequeue_script( 'event-listener-script'); } } add_action( 'wp_print_scripts', 'products_feed_mananger_dequeue_script', 100 );Marking as resolved.
That must be a new record for high speed bug fixing. Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)