diff --git a/src/wp-includes/js/wp-custom-header.js b/src/wp-includes/js/wp-custom-header.js index 80e00e5a74..80ebd917dc 100644 --- a/src/wp-includes/js/wp-custom-header.js +++ b/src/wp-includes/js/wp-custom-header.js @@ -1,5 +1,10 @@ (function( window, $, settings ) { + if ( ! ( 'addEventListener' in window ) ) { + // Fail gracefully in unsupported browsers. + return; + } + function wpCustomHeader() { var handlers = { nativeVideo: {