#25312 closed defect (bug) (duplicate)
Video shortcode filter doesn't pass along original shortcode attributes
Reported by: | ericlewis | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
There is a single filter for modifying the markup made by the video shortcode, 'wp_video_shortcode'. However, the $atts variable, which once contained the shortcode attributes at the beginning of the function, gets replaced in the middle of the function with the attributes to be applied to the <video> element.
This means that if I'm trying to filter the shortcode and make my own markup, I have no access to specific video srcs passed into the video shortcode ( [video webm="video.webm" mp4="video.mp4"] ).
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Same for
wp_audio_shortcode
filter (mentioned in #24765).