Twenty Fifteen: prevent a flash of visible sub menus before scripts load.
Props mattwiebe, aferica, fixes #30056. Built from https://develop.svn.wordpress.org/trunk@30211 git-svn-id: http://core.svn.wordpress.org/trunk@30211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7919a6d812
commit
c1b360a665
|
@ -18,6 +18,7 @@
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
|
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
<script>(function(){document.documentElement.className='js'})();</script>
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
( function( $ ) {
|
( function( $ ) {
|
||||||
var $body, $window, sidebar, toolbarOffset;
|
var $body, $window, sidebar, toolbarOffset;
|
||||||
|
|
||||||
$( 'html' ).removeClass( 'no-js' );
|
|
||||||
|
|
||||||
// Add dropdown toggle that display child menu items.
|
// Add dropdown toggle that display child menu items.
|
||||||
$( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
|
$( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30210';
|
$wp_version = '4.1-alpha-30211';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue