[wp-trac] [WordPress Trac] #61515: wp_audio_shortcode() outputs invalid HTML
WordPress Trac
noreply at wordpress.org
Sun Mar 16 18:49:55 UTC 2025
#61515: wp_audio_shortcode() outputs invalid HTML
-------------------------------------------------+-------------------------
Reporter: shub07 | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note commit |
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59987" 59987]:
{{{
#!CommitTicketReference repository="" revision="59987"
Media: Add 'muted' attribute and normalize HTML attributes.
Add the 'muted' attribute to the audio shortcode. Fix boolean attributes
to meet HTML5 standards. Replaces instances like `attr="1"` with `attr`
for `loop`, `autoplay`, and `muted`, and improves handling of the
`preload` attribute to only output valid values.
Props shub07, dmsnell, debarghyabanerjee, audrasjb, narenin, apermo,
joedolson.
Fixes #61515.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61515#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list