Make WordPress Core

Changeset 4043


Ignore:
Timestamp:
07/26/2006 08:40:00 AM (19 years ago)
Author:
ryan
Message:

Quote escaping fixes from mdawaffe. fixes #2975

File:
1 edited

Legend:

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

    r3915 r4043  
    532532            $css_class .= ' current_page_item';
    533533
    534         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . wp_specialchars($page->post_title) . '">' . $page->post_title . '</a>';
     534        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . wp_specialchars($page->post_title, 1) . '">' . $page->post_title . '</a>';
    535535   
    536536        if ( !empty($show_date) ) {
     
    600600        $link = '<a href="' . get_category_link($category->cat_ID) . '" ';
    601601        if ( $use_desc_for_title == 0 || empty($category->category_description) )
    602             $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name)) . '"';
     602            $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name, 1)) . '"';
    603603        else
    604             $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category)) . '"';
     604            $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category),1) . '"';
    605605        $link .= '>';
    606606        $link .= apply_filters('list_cats', $category->cat_name, $category).'</a>';
Note: See TracChangeset for help on using the changeset viewer.