WordPress.org

Make WordPress Core

Ticket #22307: 22307.diff

File 22307.diff, 626 bytes (added by lancewillett, 18 months ago)
  • wp-content/themes/twentytwelve/js/navigation.js

     
    44 * Handles toggling the navigation menu for small screens. 
    55 */ 
    66( function() { 
     7        if ( null === document.getElementById( 'site-navigation' ) ) 
     8                return false; 
     9 
    710        var button = document.getElementById( 'site-navigation' ).getElementsByTagName( 'h3' )[0], 
    811            menu   = document.getElementById( 'site-navigation' ).getElementsByTagName( 'ul' )[0]; 
    912