public
Created

Disable Jetpack's spinner function when it conflicts with Mootools' spinner. Careful though, it will break all features using the Spinner: Carousel, Custom CSS, Infinite Scroll, Notes http://i.wpne.ws/PRX9

  • Download Gist
tweakjp_disable_spin.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
/*
* Plugin Name: Disable Jetpack's Spinner
* Plugin URI: http://wordpress.org/extend/plugins/
* Description: Disable Jetpack's Spinner
* Author: George Stephanis
* Version: 1.0
* Author URI: http://stephanis.info/
* License: GPL2+
*/
 
add_action( 'wp_loaded', 'nuke_spin', 11 );
function nuke_spin() {
wp_deregister_script( 'jquery.spin' );
wp_deregister_script( 'spin' );
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.