From a889a5a2dfd503d9e0b0405b04e332bf6cef7773 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@11352 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 cabc8d1bf..883e42f38 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 = '#';