Make WordPress Core

Ticket #30056: 30056.1.diff

File 30056.1.diff, 1.1 KB (added by mattwiebe, 11 years ago)
  • wp-content/themes/twentyfifteen/header.php

     
    1919        <!--[if lt IE 9]>
    2020        <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
    2121        <![endif]-->
     22        <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>
    2223        <?php wp_head(); ?>
    2324</head>
    2425
  • wp-content/themes/twentyfifteen/js/functions.js

     
    88( function( $ ) {
    99        var $body, $window, sidebar, toolbarOffset;
    1010
    11         $( 'html' ).removeClass( 'no-js' );
    12 
    1311        // Add dropdown toggle that display child menu items.
    1412        $( '.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>' );
    1513