WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #11699


Ignore:
Timestamp:
04/14/2010 07:32:28 PM (8 years ago)
Author:
nacin
Comment:

Maybe we should instead strip all tags?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11699

    • Property Milestone changed from Unassigned to 3.0
  • Ticket #11699 – Description

    initial v2  
    66
    77A (but possibly the wrong) fix is to strip the anchor tags using:
    8 
     8{{{
    991265a1266,1268
    10 >       $allowed_html_in_titles = $allowedtags;
    11 >       unset($allowed_html_in_titles['a']);
    12 >       $title = wp_kses($title, $allowed_html_in_titles);
    13 
     10        $allowed_html_in_titles = $allowedtags;
     11        unset($allowed_html_in_titles['a']);
     12        $title = wp_kses($title, $allowed_html_in_titles);
     13}}}
    1414applied to wp-includes/link-template.php
    1515