Remove de-registration of jQuery and li0n.js

jQuery is now skipped manually in roots-scripts.php so
we don't have to worry about the old cleanup
This commit is contained in:
Ben Word
2012-02-22 15:18:32 -07:00
parent 35dc9f10bc
commit d82b8c5d2b

View File

@@ -172,15 +172,6 @@ function roots_head_cleanup() {
remove_action('wp_head', 'rel_canonical');
add_action('wp_head', 'roots_rel_canonical');
}
// deregister l10n.js (new since WordPress 3.1)
// why you might want to keep it: http://wordpress.stackexchange.com/questions/5451/what-does-l10n-js-do-in-wordpress-3-1-and-how-do-i-remove-it/5484#5484
// don't load jQuery through WordPress since it's linked in header.php
if (!is_admin()) {
wp_deregister_script('l10n');
wp_deregister_script('jquery');
wp_register_script('jquery', '', '', '', true);
}
}
add_action('init', 'roots_head_cleanup');