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

WordPress Trac noreply at wordpress.org
Thu Mar 7 21:08:45 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 wonderboymusic):

 Updated patch to make everything filterable / replaceable. Added a
 function to insert fallback content into the `<audio>` and `<video>` tags
 when JS is disabled (defaults to linked URL - one again, filterable)

 Here is the laundry list of what is in the patch:

 - allows Insert Into Post to work for Audio / Video
 - mediaelement.zip goes in `wp-includes/js`
 - Introduce `get_tag_regex()`, utility to return regex for HTML tag
 content, needed by other patches
 - Introduce `shortcode_exists()`- check whether short code is presently
 registered, needed by other patches
 - Introduce `has_shortcode( $content, $tag )`, checks content for
 shortcodes, needed by other patches
 - Introduce `wp_get_audio_extensions()`, filterable
 - Introduce `wp_audio_shortcode()`, filterable
 - Introduce `wp_audio_embed()`, passes URL to shortcode if it hasn't been
 unregistered
 - Introduce `get_post_audio()`, wraps `get_children()`
 - Introduce `wp_get_video_extensions()`, filterable
 - Introduce `wp_video_shortcode()`, filterable
 - Introduce `wp_video_embed()`, passes URL to shortcode if it hasn't been
 unregistered
 - Introduce `get_post_video()`, wraps `get_children()`
 - Introduce `wp_mediaelement_fallback`

 the No-JS `<object>` HTML code is not jiving well with me in a local
 environment, gonna reach out upstream about it, but I don't think that is
 a blocker for this patch.

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


More information about the wp-trac mailing list