WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/21/2010 05:17:58 PM (9 years ago)
Author:
ryan
Message:

Translations in title attributes require esc_attr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r16900 r17102  
    827827        $link = '<a href="' . esc_attr( get_term_link($category) ) . '" ';
    828828        if ( $use_desc_for_title == 0 || empty($category->description) )
    829             $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
     829            $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"';
    830830        else
    831831            $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
Note: See TracChangeset for help on using the changeset viewer.