[wp-trac] [WordPress Trac] #28090: Multiple add media buttons all have same ID attribute

WordPress Trac noreply at wordpress.org
Thu Jun 26 01:04:34 UTC 2014


#28090: Multiple add media buttons all have same ID attribute
----------------------------+-----------------------------
 Reporter:  helgatheviking  |       Owner:  wonderboymusic
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  4.0
Component:  Media           |     Version:  3.5
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28837"]:
 {{{
 #!CommitTicketReference repository="" revision="28837"
 In `media_buttons()`, add a static var `$instance` to increment the `id`
 attribute of `insert-media-button-%d` on each call.

 Props ericlewis.
 Fixes #28090.
 }}}

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


More information about the wp-trac mailing list