From f99ec3db183720412c9c3d71361ac0fa120708e7 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Fri, 12 Feb 2016 21:43:26 +0000 Subject: [PATCH] =?UTF-8?q?Comments:=20In=20the=20comments=20list=20table,?= =?UTF-8?q?=20only=20link=20rows=20inside=20the=20=E2=80=9CSubmitted=20On?= =?UTF-8?q?=E2=80=9D=20column=20to=20the=20comment=20if=20it=20is=20public?= =?UTF-8?q?ly=20viewable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The date within the comments list table “Submitted On” column will only be wrapped in `get_comment_link()` if the comment is approved and associated with a valid `comment_post_ID`. Fixes #35279. Built from https://develop.svn.wordpress.org/trunk@36521 git-svn-id: http://core.svn.wordpress.org/trunk@36488 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../includes/class-wp-comments-list-table.php | 16 ++++++++++++---- wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index f12565a95f..a5f96939d5 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -716,15 +716,23 @@ class WP_Comments_List_Table extends WP_List_Table { * @param WP_Comment $comment The comment object. */ public function column_date( $comment ) { - echo '
'; - echo ''; /* translators: 1: comment date, 2: comment time */ - printf( __( '%1$s at %2$s' ), + $submitted = sprintf( __( '%1$s at %2$s' ), /* translators: comment date format. See http://php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( __( 'g:i a' ), $comment ) ); - echo ''; + + echo ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2f39069bc8..286d0887d1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36520'; +$wp_version = '4.5-alpha-36521'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.