[wp-trac] [WordPress Trac] #32855: wp_audio_shortcode() and wp_video_shortcode() ignoring input $attr['id']

WordPress Trac noreply at wordpress.org
Wed Jul 1 14:51:40 UTC 2015


#32855: wp_audio_shortcode() and wp_video_shortcode() ignoring input $attr['id']
-------------------------+------------------------------
 Reporter:  thorbrink    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  3.6
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:   => needs-patch
 * type:  defect (bug) => enhancement
 * version:  4.2.2 => 3.6
 * component:  Shortcodes => Media


Comment:

 Hi thorbrink, this is unlikely to change ... the `id` is set dynamically
 so that it is guaranteed to be unique. If `[audio|video]` were to take an
 `id` param, it would probably represent an attachment's id in the
 database. Currently, the implementation is URL-based. This allows you to
 write the shortcodes by hand and easily point at an asset stored on a CDN.
 It is also difficult to associate sub-attachments through our current UI
 by linking attachment IDs in a parent-child relationship.

 I'll leave this open in case you or others can come up with a clever idea
 to support custom HTML IDs.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32855#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list