Created
May 23, 2013 19:40
-
-
Save rosshanney/5638846 to your computer and use it in GitHub Desktop.
Load the newest version of the jQuery easing plugin in the Calypso theme
This file contains 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: Use newer jQuery easing plugin | |
*/ | |
function gce_newer_easing() { | |
wp_dequeue_script( 'easing' ); | |
wp_enqueue_script( 'gce-easing', plugins_url( 'jquery.easing.min.js', __FILE__ ), array( 'jquery' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'gce_newer_easing' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment