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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user