From 1c6951324501ef1dc888e8284e1b3ab4f6461b81 Mon Sep 17 00:00:00 2001 From: Anthony Burchell Date: Sun, 11 Sep 2022 22:17:04 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@54128 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 5 ++++- tests/phpunit/tests/media.php | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index caf8d247f5..61c93c9528 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -3219,6 +3219,7 @@ function wp_get_video_extensions() { * @type string $poster The 'poster' attribute for the `