[wp-trac] [WordPress Trac] #23282: Add shortcodes for inline HTML5 audio / video

WordPress Trac noreply at wordpress.org
Fri Mar 15 09:50:47 UTC 2013


#23282: Add shortcodes for inline HTML5 audio / video
-----------------------------+--------------------
 Reporter:  wonderboymusic   |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Media            |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+--------------------

Comment (by DrewAPicture):

 As I mentioned in [comment:ticket:23572:8], it seems like there's a lot of
 duplication in the audio/video function pairs. Had you considered moving
 to a more general approach of say `get_post_media( 'audio|video' )` to
 reduce the necessity of these very specifically-named functions?

 It seems like we'd be locking ourselves in to having to create additional
 media-named functions in the future. Going with the more generic naming
 convention you can always extend for new flags.

 Also happy to work up patches in this vein.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23282#comment:49>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list