[wp-trac] [WordPress Trac] #64748: Privacy: get_the_privacy_policy_link() should strip HTML tags and return plain text
WordPress Trac
noreply at wordpress.org
Fri Feb 27 22:47:26 UTC 2026
#64748: Privacy: get_the_privacy_policy_link() should strip HTML tags and return
plain text
--------------------------+---------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: Privacy | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Changes (by westonruter):
* milestone: Awaiting Review => 7.0
Comment:
Note that the block editor doesn't allow you to add markup to the post
title. You can, however, add markup via the quick edit on the post list
table. So I don't think that decoding the entities is correct.
I also think perhaps `wp_kses_post()` should be used instead of
`esc_html()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64748#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list