Strip tags from category description when used as title, props demetris, fixes #9753

git-svn-id: http://svn.automattic.com/wordpress/trunk@11239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-05-08 13:47:26 +00:00
parent ba1741b6e5
commit 348654df25

View File

@ -1331,7 +1331,7 @@ class Walker_Category extends Walker {
if ( $use_desc_for_title == 0 || empty($category->description) )
$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
else
$link .= 'title="' . esc_attr( apply_filters( 'category_description', $category->description, $category )) . '"';
$link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
$link .= '>';
$link .= $cat_name . '</a>';