[wp-trac] [WordPress Trac] #22307: Javascript error in 2012 theme if not using nav

WordPress Trac noreply at wordpress.org
Mon Oct 29 17:55:24 UTC 2012


#22307: Javascript error in 2012 theme if not using nav
-----------------------------+--------------------------
 Reporter:  sswells          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Themes
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 I'm getting this error on a page that isn't using the header or nav.

 Error: TypeError: document.getElementById("site-navigation") is null
 Source File: /wp-content/themes/twentytwelve/js/navigation.js?ver=1.0
 Line: 7

 Can a check be added into the Twenty Twelve theme to make sure #site-
 navigation exists on the page?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22307>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list