[wp-trac] [WordPress Trac] #12056: target="_blank" being stripped from Profile Bio and Category Description
WordPress Trac
noreply at wordpress.org
Tue Jan 21 22:57:20 UTC 2025
#12056: target="_blank" being stripped from Profile Bio and Category Description
-------------------------------------------------+-------------------------
Reporter: lovewpmu | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: Formatting | Version: 2.9.2
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing-info has- | Focuses:
unit-tests has-screenshots |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59677" 59677]:
{{{
#!CommitTicketReference repository="" revision="59677"
Formatting: Preserve `target="_blank"` in Biographical Info and Category
Description.
This changeset ensures the `target="_blank"` attribute is preserved when
adding links in the Biographical Info and Category Description fields.
Previously, this attribute was being stripped by the KSES sanitization
process.
Additionally, new unit tests have been added to verify the preservation of
the `target="_blank"` attribute in these specific contexts.
Props lovewpmu, miqrogroove, bsutcliffe, sjefen6, nofearinc, nacin, harmr,
blogitsolutions, stefahn, nirajgirixd, martinkrcho, spacedmonkey,
sukhendu2002, audrasjb, gaellebesson, nuryko, guillaumeturpin,
maximemeganck, ranafge, azaozz, joedolson, rinkalpagdar, mikinc860.
Fixes #12056.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12056#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list