From 0788bccc0c3cb215a1a8ad2a06e30054d2b726f3 Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Mon, 3 Nov 2014 18:57:22 +0000 Subject: [PATCH] Twenty Fifteen: prevent a flash of visible sub menus before scripts load. Props mattwiebe, aferica, fixes #30056. git-svn-id: https://develop.svn.wordpress.org/trunk@30211 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/header.php | 1 + src/wp-content/themes/twentyfifteen/js/functions.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/header.php b/src/wp-content/themes/twentyfifteen/header.php index ca8f1a5a0d..9cacfc20b8 100644 --- a/src/wp-content/themes/twentyfifteen/header.php +++ b/src/wp-content/themes/twentyfifteen/header.php @@ -18,6 +18,7 @@ + diff --git a/src/wp-content/themes/twentyfifteen/js/functions.js b/src/wp-content/themes/twentyfifteen/js/functions.js index 4c9f1b33c8..83c0968810 100644 --- a/src/wp-content/themes/twentyfifteen/js/functions.js +++ b/src/wp-content/themes/twentyfifteen/js/functions.js @@ -8,8 +8,6 @@ ( function( $ ) { var $body, $window, sidebar, toolbarOffset; - $( 'html' ).removeClass( 'no-js' ); - // Add dropdown toggle that display child menu items. $( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).after( '' );