[wp-trac] [WordPress Trac] #36284: Video shortcode should exclusively use the 'src' attribute for the video URL

WordPress Trac noreply at wordpress.org
Mon Mar 21 17:52:59 UTC 2016


#36284: Video shortcode should exclusively use the 'src' attribute for the video
URL
--------------------------+-----------------------------
 Reporter:  gnotaras      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I notice that when adding videos to the content using the 'Add Media'
 dialog, the URL of the video is added to an attribute named after the
 video's extension. For instance:

 {{{
 [video width="480" height="360"
 mp4="http://example.com/uploads/video.mp4"][/video]
 }}}

 This makes absolutely no sense. The expected would be:

 {{{
 [video width="480" height="360"
 src="http://example.com/uploads/video.mp4"][/video]
 }}}

 The problem with using an attribute named {{{mp4}}} is that, if you try to
 process the $attr array as passed to the {{{wp_video_shortcode_override}}}
 filter, things stop making any sense as you have to guess the attribute
 name based on a URL that is the value of that attribute!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36284>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list