[wp-trac] [WordPress Trac] #63238: Removed `target="_blank"` from Browser Uploader Link

WordPress Trac noreply at wordpress.org
Tue Jul 8 15:52:58 UTC 2025


#63238: Removed `target="_blank"` from Browser Uploader Link
-------------------------------------+-------------------------------------
 Reporter:  dilipbheda               |       Owner:  joedolson
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.9
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  accessibility,
  screenshots target-blank           |  administration
-------------------------------------+-------------------------------------
Changes (by joedolson):

 * owner:  (none) => joedolson
 * status:  new => accepted
 * milestone:  Awaiting Review => 6.9


Comment:

 Good catch, @dilipbheda!

 I'm thinking that we should also semantically change this to a button. To
 keep things simple, we might want to just add `role="button"` and add the
 extra key handler to the events to support spacebar triggering.

 That would also continue to allow users to open in a new tab if they are
 accustomed to doing that, though I wonder how often that actually
 happens...

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


More information about the wp-trac mailing list