Created
June 5, 2013 15:45
-
-
Save jeherve/5714915 to your computer and use it in GitHub Desktop.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment