Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (16 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

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

    r11141 r11204  
    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="' . attr(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="' . esc_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 = attr( $category->name);
     1328        $cat_name = esc_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="' . attr( apply_filters( 'category_description', $category->description, $category )) . '"';
     1334            $link .= 'title="' . esc_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.