WordPress.org

Make WordPress Core

Changeset 14104


Ignore:
Timestamp:
04/16/10 13:49:52 (5 years ago)
Author:
nacin
Message:

Strip tags before escaping the title element in wp_list_pages(). props scribu. fixes #11040.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r14031 r14104  
    12991299        $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page)); 
    13001300 
    1301         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>'; 
     1301        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page->post_title ) ) ) . '">' . $link_before . apply_filters( 'the_title', $page->post_title ) . $link_after . '</a>'; 
    13021302 
    13031303        if ( !empty($show_date) ) { 
Note: See TracChangeset for help on using the changeset viewer.