From fee032b9e8b4ca8b0c9f0dd4b21d515c331f290d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 16 May 2009 02:23:12 +0000 Subject: [PATCH] strip tags on post titles in recent comments dashboard widget. Props Denis-de-Bernardy, mastermind. fixes #9138 git-svn-id: https://develop.svn.wordpress.org/trunk@11352 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index cabc8d1bf2..883e42f385 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -523,7 +523,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { $GLOBALS['comment'] =& $comment; $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); - $comment_post_title = get_the_title( $comment->comment_post_ID ); + $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID )); $comment_post_link = "$comment_post_title"; $comment_link = '#';