[wp-trac] [WordPress Trac] #63868: DCR: allow 'new post' to open in new tab
WordPress Trac
noreply at wordpress.org
Mon Aug 25 19:21:25 UTC 2025
#63868: DCR: allow 'new post' to open in new tab
----------------------------+------------------------------
Reporter: Servelan | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: close | Focuses: administration
----------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => close
* component: General => Administration
Comment:
I highly recommend using a shortcut such as Ctrl+click (or Command+click)
to open links in a new tab exactly when you want them to open that way.
Adding a `target` attribute takes away the user's choice, so #23432 and
other tickets have purposely removed `target="_blank"` from many
administration links.
If you want the admin toolbar links in your site to include a `target`
attribute, you technically could add that already with the
[https://gist.github.com/sabernhardt/d6a8670913d76a5ab3fbdc8cd1f1e1f3
'wp_before_admin_bar_render' hook]. Other New Post links might have ways
to edit them, too, without JavaScript.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63868#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list