From d82b8c5d2b01572c8a2082978e8dcf51a5d8c0b1 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 22 Feb 2012 15:18:32 -0700 Subject: [PATCH] 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 --- inc/roots-cleanup.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index b911ce9..aa3dce7 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -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');