From c3f642bea97bd18df1ecfb3823f43450209878c6 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 06:15:24 +0000 Subject: [PATCH] After [33961], pass `$comment` to `get_comment_date()` where possible to avoid extra cache/db lookups. See #33638. Built from https://develop.svn.wordpress.org/trunk@34041 git-svn-id: http://core.svn.wordpress.org/trunk@34009 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 4 ++-- wp-includes/class-walker-comment.php | 4 ++-- wp-includes/theme-compat/comments-popup.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 7e86f03cb0..24b0e16e40 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -195,8 +195,8 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved printf( __( '%2$s at %3$s' ), esc_url( get_comment_link( $comment->comment_ID ) ), /* translators: comment date format. See http://php.net/date */ - get_comment_date( __( 'Y/m/d' ) ), - get_comment_date( get_option( 'time_format' ) ) + get_comment_date( __( 'Y/m/d' ), $comment ), + get_comment_date( get_option( 'time_format' ), $comment ) ); ?> diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index c8c379961b..75d5e466c3 100644 --- a/wp-includes/class-walker-comment.php +++ b/wp-includes/class-walker-comment.php @@ -271,7 +271,7 @@ class Walker_Comment extends Walker {
@@ -321,7 +321,7 @@ class Walker_Comment extends Walker { diff --git a/wp-includes/theme-compat/comments-popup.php b/wp-includes/theme-compat/comments-popup.php index bd7a5db71a..1643d8f7ff 100644 --- a/wp-includes/theme-compat/comments-popup.php +++ b/wp-includes/theme-compat/comments-popup.php @@ -52,7 +52,7 @@ if ( post_password_required($post) ) { // and it doesn't match the cookie
  • -

    %4$s'), get_comment_author_link( $comment ), get_comment_date(), get_comment_ID(), get_comment_time()); ?>

    +

    %4$s'), get_comment_author_link( $comment ), get_comment_date( '', $comment ), get_comment_ID(), get_comment_time()); ?>

  • diff --git a/wp-includes/version.php b/wp-includes/version.php index 56098056aa..67f93fc843 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34040'; +$wp_version = '4.4-alpha-34041'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.