mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 04:49:49 +01:00
This changeset updates `wp_video_shortcode()` to improve boolean attributes handling in accordance with HTML5 standards. Technically, it replaces `attr="1"` with `attr` for the `loop`, `autoplay` and `muted` attributes. The `preload` attribute is also updated to accept only allowed values: `none`, `metadata`, and `auto`. If a value outside of this list is provided, it will be ignored, preventing invalid attribute outputs. Props jongycastillo, sabernhardt, joedolson, audrasjb, shub07, debarghyabanerjee. Fixes #60178. git-svn-id: https://develop.svn.wordpress.org/trunk@59954 602fd350-edb4-49c9-b593-d223f7449a82