Created
December 13, 2010 04:01
-
-
Save xentek/738634 to your computer and use it in GitHub Desktop.
upgrade jquery-ui (or any 'core' script) in WordPress with this handy idiom
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 | |
if ( !is_admin() ): | |
wp_deregister_script('jquery-ui'); | |
wp_enqueue_script('jquery-ui', get_bloginfo('stylesheet_directory') . '/js/jquery.ui.core.min.js', array('jquery'), '1.8.6'); | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment