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

git-svn-id: https://develop.svn.wordpress.org/trunk@11239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-05-08 13:47:26 +00:00
parent 2b97f18c3d
commit ef540360eb
1 changed files with 1 additions and 1 deletions

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>';