Opened 10 years ago
Closed 10 years ago
#38585 closed defect (bug) (fixed)
Exit `wp-custom-header.js` gracefully in browsers without `addEventListener` support.
| Reported by: | peterwilsoncc | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Themes | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
Description
wp-custom-header.js throws an error in browsers that don't support document.addEventListener.
Add a check for browser support and fail gracefully if it doesn't pass.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
38585.diff adds required check.