Make WordPress Core

Ticket #30056: 30056.2.diff

File 30056.2.diff, 1.2 KB (added by afercia, 10 years ago)

Updated patch with new regex, rebuilt from the root. Would like a second opinion though.

  • src/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(/(^|\s)no-js(\s|$)/,'$1$2')})(document.documentElement);</script>
    2223        <?php wp_head(); ?>
    2324</head>
    2425
  • src/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