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

WordPress Trac noreply at wordpress.org
Tue Sep 2 05:09:21 UTC 2014


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

Comment (by pento):

 attachment:28090.2.diff sets the first button's id to `insert-media-
 button`, subsequent button ids to `insert-media-button-1`, `-2`, etc.

 I briefly considered starting at `-2`, but it implied that there should be
 a `-1` somewhere.

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


More information about the wp-trac mailing list