WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2006 09:07:42 PM (15 years ago)
Author:
markjaquith
Message:

run _page_level_out() link text through wp_specialchars(). Props to hughbiquitous. fixes #2507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/template-functions-post.php

    r4228 r4270  
    414414    foreach ( $page_tree[$parent]['children'] as $page_id ) {
    415415        $cur_page = $page_tree[$page_id];
    416         $title = $cur_page['title'];
     416        $title = wp_specialchars($cur_page['title']);
    417417
    418418        $css_class = 'page_item';
     
    420420            $css_class .= ' current_page_item';
    421421
    422         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . wp_specialchars($title) . '">' . $title . '</a>';
     422        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . $title . '">' . $title . '</a>';
    423423
    424424        if ( isset($cur_page['ts']) ) {
Note: See TracChangeset for help on using the changeset viewer.