mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
ba1741b6e5
commit
348654df25
@ -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>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user