diff --git a/wp-includes/js/wp-custom-header.js b/wp-includes/js/wp-custom-header.js index 5a446727fa..ae43f56174 100644 --- a/wp-includes/js/wp-custom-header.js +++ b/wp-includes/js/wp-custom-header.js @@ -287,9 +287,10 @@ video = document.createElement( 'video' ); video.id = 'wp-custom-header-video'; - video.autoplay = 'autoplay'; - video.loop = 'loop'; - video.muted = 'muted'; + video.autoplay = true; + video.loop = true; + video.muted = true; + video.playsInline = true; video.width = this.settings.width; video.height = this.settings.height; diff --git a/wp-includes/js/wp-custom-header.min.js b/wp-includes/js/wp-custom-header.min.js index 3c88813e3c..8573af68fa 100644 --- a/wp-includes/js/wp-custom-header.min.js +++ b/wp-includes/js/wp-custom-header.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(n,t){var e,i;function a(e,t){var i;"function"==typeof n.Event?i=new Event(t):(i=document.createEvent("Event")).initEvent(t,!0,!0),e.dispatchEvent(i)}function o(){this.handlers={nativeVideo:new e,youtube:new i}}function s(){}n.wp=n.wp||{},"addEventListener"in n&&(o.prototype={initialize:function(){if(this.supportsVideo())for(var e in this.handlers){e=this.handlers[e];if("test"in e&&e.test(t)){this.activeHandler=e.initialize.call(e,t),a(document,"wp-custom-header-video-loaded");break}}},supportsVideo:function(){return!(n.innerWidth