[wp-trac] [WordPress Trac] #25312: Video shortcode filter doesn't pass along original shortcode attributes

WordPress Trac noreply at wordpress.org
Fri Sep 13 15:39:25 UTC 2013


#25312: Video shortcode filter doesn't pass along original shortcode attributes
--------------------------+-----------------------------
 Reporter:  ericlewis     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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"] ).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25312>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list