WordPress.org

Make WordPress Core

Changeset 39050


Ignore:
Timestamp:
10/31/2016 06:16:15 AM (4 years ago)
Author:
peterwilsoncc
Message:

Themes: Exit wp-custom-header.js early in browsers wihout modern events.

Adds a check for window.addEventListener support before attempting to use it. In browsers without support, the file is exited early to avoid throwing a JavaScript error.

Fixes #38585.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.