From ef540360eba0c878ef042dbd3a8fa87981b67ff7 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 8 May 2009 13:47:26 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 7519fb4982..911722daae 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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 . '';