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
This commit is contained in:
parent
e0763aa711
commit
a889a5a2df
|
@ -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 = "<a href='$comment_post_url'>$comment_post_title</a>";
|
||||
$comment_link = '<a class="comment-link" href="' . get_comment_link() . '">#</a>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue