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

WordPress Trac noreply at wordpress.org
Sat May 24 06:29:59 UTC 2014


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

 * keywords:   => has-patch


Comment:

 We can't get rid of an ID here, since we need a unique identifier to pass
 to the `wp_editor()` options hash for `tabfocus_elements`.

 In attachment:28090.diff, introduce a $static variable to keep track of
 the ID attribute for the anchor, and set `tabfocus_elements` to `insert-
 media-button-1` in edit-form-advanced.php.

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


More information about the wp-trac mailing list