From 799d6d616c0bd4d06e24b8cb1bf67fe83ac618d7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Mar 2022 17:39:01 +0000 Subject: [PATCH] Coding Standards: Escape the comment post URL in `_wp_dashboard_recent_comments_row()`. Follow-up to [6705]. Props kebbet. See #54728. Built from https://develop.svn.wordpress.org/trunk@52967 git-svn-id: http://core.svn.wordpress.org/trunk@52556 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index e3a7490b1d..c95f1b6b08 100644 --- a/wp-admin/includes/dashboard.php +++ b/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 = ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 855f86e2bb..a35dfd6754 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52966'; +$wp_version = '6.0-alpha-52967'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.