[wp-trac] [WordPress Trac] #24765: Allow more attributes to the audio / video shortcode
WordPress Trac
noreply at wordpress.org
Mon Jul 15 23:58:24 UTC 2013
#24765: Allow more attributes to the audio / video shortcode
-------------------------+-----------------------------
Reporter: jancbeck | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: trunk
Severity: normal | Keywords:
-------------------------+-----------------------------
width, height and poster are the only attributes applicable by the video
shortcode. Audio supports no additional attributes at all.
The list of specified HTML5 attributes for audio and video can be found
here:
http://www.whatwg.org/specs/web-apps/current-work/#audio
http://www.whatwg.org/specs/web-apps/current-work/#video
''Imho'' '''preload''', '''autoplay''', '''loop''', '''muted''' and
'''controls''' are attributes users should be able to set.
Currently both shortcode functions hardcode in `controls="controls"
preload="none"`with no way to replace them other than regex'ing the
output.
The '''wp_audio_shortcode''' filter has access to $atts but that's not the
original list of attributes specified in the shortcode (look a few lines
up where $atts is redefined).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24765>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list