From fbe878f68d3dd41b1bdd2c2fd3e70e3058cf4aff Mon Sep 17 00:00:00 2001 From: antpb Date: Sun, 11 Sep 2022 22:19:10 +0000 Subject: [PATCH] Media: Add muted property for video elements. This change allows for the muted property to be used in video elements which solves for content that wishes to `autoPlay` when a page is viewed. Adding `muted` to video elements adhears to the requirements browsers have to honor `autoPlay` functionality. Props prokium, peterwilsoncc, costdev, johnbillion, Benouare. Fixes #54788. Built from https://develop.svn.wordpress.org/trunk@54128 git-svn-id: http://core.svn.wordpress.org/trunk@53687 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index caf8d247f5..61c93c9528 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -3219,6 +3219,7 @@ function wp_get_video_extensions() { * @type string $poster The 'poster' attribute for the `