Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#22307 closed defect (bug)

Javascript error in 2012 theme if not using nav — at Initial Version

Reported by: sswells Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:


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?

Change History (0)

Note: See TracTickets for help on using tickets.