Changeset 4270

Show
Ignore:
Timestamp:
10/02/06 21:07:42 (2 years ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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']) ) {