Quote escaping fixes from mdawaffe. fixes #2975

git-svn-id: http://svn.automattic.com/wordpress/trunk@4043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-26 08:40:00 +00:00
parent 04f357b4eb
commit 1e3675526d
1 changed files with 3 additions and 3 deletions

View File

@ -531,7 +531,7 @@ class Walker_Page extends Walker {
if ( $page->ID == $current_page ) if ( $page->ID == $current_page )
$css_class .= ' current_page_item'; $css_class .= ' current_page_item';
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . wp_specialchars($page->post_title) . '">' . $page->post_title . '</a>'; $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . wp_specialchars($page->post_title, 1) . '">' . $page->post_title . '</a>';
if ( !empty($show_date) ) { if ( !empty($show_date) ) {
if ( 'modified' == $show_date ) if ( 'modified' == $show_date )
@ -599,9 +599,9 @@ class Walker_Category extends Walker {
$link = '<a href="' . get_category_link($category->cat_ID) . '" '; $link = '<a href="' . get_category_link($category->cat_ID) . '" ';
if ( $use_desc_for_title == 0 || empty($category->category_description) ) if ( $use_desc_for_title == 0 || empty($category->category_description) )
$link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name)) . '"'; $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name, 1)) . '"';
else else
$link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category)) . '"'; $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category),1) . '"';
$link .= '>'; $link .= '>';
$link .= apply_filters('list_cats', $category->cat_name, $category).'</a>'; $link .= apply_filters('list_cats', $category->cat_name, $category).'</a>';