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:
parent
2b97f18c3d
commit
ef540360eb
@ -1331,7 +1331,7 @@ class Walker_Category extends Walker {
|
|||||||
if ( $use_desc_for_title == 0 || empty($category->description) )
|
if ( $use_desc_for_title == 0 || empty($category->description) )
|
||||||
$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
|
$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
|
||||||
else
|
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 .= '>';
|
||||||
$link .= $cat_name . '</a>';
|
$link .= $cat_name . '</a>';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user