From d58450609622a86918050f787f9731296bb421b8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Mar 2022 17:37:21 +0000 Subject: [PATCH] Coding Standards: Escape the comment post URL in `_wp_dashboard_recent_comments_row()`. Follow-up to [6705]. Props kebbet. See #54728. git-svn-id: https://develop.svn.wordpress.org/trunk@52967 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index e3a7490b1d..c95f1b6b08 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -685,7 +685,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { if ( $comment->comment_post_ID > 0 ) { $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); $comment_post_url = get_the_permalink( $comment->comment_post_ID ); - $comment_post_link = "$comment_post_title"; + $comment_post_link = '' . $comment_post_title . ''; } else { $comment_post_link = ''; }