#25312 closed defect (bug) (duplicate)
Video shortcode filter doesn't pass along original shortcode attributes
| Reported by: | ericlewis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 3.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Same for
wp_audio_shortcodefilter (mentioned in #24765).