Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (16 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

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

    r11013 r11109  
    11881188        $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
    11891189
    1190         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';
     1190        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';
    11911191
    11921192        if ( !empty($show_date) ) {
     
    13261326        extract($args);
    13271327
    1328         $cat_name = attribute_escape( $category->name);
     1328        $cat_name = attr( $category->name);
    13291329        $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    13301330        $link = '<a href="' . get_category_link( $category->term_id ) . '" ';
     
    13321332            $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
    13331333        else
    1334             $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->description, $category )) . '"';
     1334            $link .= 'title="' . attr( apply_filters( 'category_description', $category->description, $category )) . '"';
    13351335        $link .= '>';
    13361336        $link .= $cat_name . '</a>';
Note: See TracChangeset for help on using the changeset viewer.