[wp-trac] [WordPress Trac] #38585: Exit `wp-custom-header.js` gracefully in browsers without `addEventListener` support.

WordPress Trac noreply at wordpress.org
Mon Oct 31 05:06:23 UTC 2016


#38585: Exit `wp-custom-header.js` gracefully in browsers without
`addEventListener` support.
---------------------------+-----------------
 Reporter:  peterwilsoncc  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  4.7
Component:  Themes         |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  javascript     |
---------------------------+-----------------
 `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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38585>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list