Opened 8 months ago
Last modified 7 months ago
#22307 closed defect (bug)
Javascript error in 2012 theme if not using nav — at Initial Version
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | xoodrew@… |
Description
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?
Note: See
TracTickets for help on using
tickets.