[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
Sat Feb 28 08:05:17 UTC 2026


#64748: Privacy: get_the_privacy_policy_link() should strip HTML tags and return
plain text
--------------------------+--------------------------
 Reporter:  wildworks     |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  7.0
Component:  Privacy       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------

Comment (by westonruter):

 As commented on the PR:

 Here is another set of instances where this same issue will.occur:
 https://github.com/search?q=repo%3AWordPress%2Fwordpress-
 develop+%2Fesc_html%5C%28+get_the_title%5C%28%2F&type=code

 This doesn't catch cases where `get_the_title()` is stored in a variable
 and then later echoed.

 I think it would sense to change the scope of the ticket to address this
 issue for all these cases.

 An AI search should be able to find more instances, such as for the
 privacy policy link on the login screen.

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


More information about the wp-trac mailing list