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

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-02 21:07:42 +00:00
parent cfb0f495ab
commit 822be1f784
1 changed files with 2 additions and 2 deletions

View File

@ -413,13 +413,13 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0, $echo = true) {
foreach ( $page_tree[$parent]['children'] as $page_id ) {
$cur_page = $page_tree[$page_id];
$title = $cur_page['title'];
$title = wp_specialchars($cur_page['title']);
$css_class = 'page_item';
if ( $page_id == $queried_obj->ID )
$css_class .= ' current_page_item';
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . wp_specialchars($title) . '">' . $title . '</a>';
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . $title . '">' . $title . '</a>';
if ( isset($cur_page['ts']) ) {
$format = get_settings('date_format');