[wp-trac] [WordPress Trac] #60347: wp_kses breaking text fragments links
WordPress Trac
noreply at wordpress.org
Mon Nov 25 14:10:28 UTC 2024
#60347: wp_kses breaking text fragments links
-------------------------------------------------+-------------------------
Reporter: asafm7 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- | Focuses:
first-bug |
-------------------------------------------------+-------------------------
Changes (by shanemuir):
* Attachment "60347-kses-text-fragments.patch" added.
This patch fixes the issue where kses removes text fragment links (e.g.,
#:~:text) as invalid protocols. The fix adds a check in
wp_kses_bad_protocol to allow such fragments. The patch also includes unit
tests to verify the behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60347>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list