From 58c3c30e8d01433e770ce648036fbc0f4e6301ff Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 06:12:24 +0000 Subject: [PATCH] After [33961], pass `$comment` to `comment_class()` where possible to avoid extra cache/db lookups. See #33638. Built from https://develop.svn.wordpress.org/trunk@34040 git-svn-id: http://core.svn.wordpress.org/trunk@34008 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- wp-includes/class-walker-comment.php | 6 +++--- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index b0631ff28b..2d10b06429 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -629,7 +629,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { ?> -
> +
> diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index 4d10278c9d..c8c379961b 100644 --- a/wp-includes/class-walker-comment.php +++ b/wp-includes/class-walker-comment.php @@ -227,7 +227,7 @@ class Walker_Comment extends Walker { protected function ping( $comment, $depth, $args ) { $tag = ( 'div' == $args['style'] ) ? 'div' : 'li'; ?> - < id="comment-" > + < id="comment-" >
', '' ); ?>
@@ -255,7 +255,7 @@ class Walker_Comment extends Walker { $add_below = 'div-comment'; } ?> - < has_children ? 'parent' : '' ); ?> id="comment-"> + < has_children ? 'parent' : '', $comment ); ?> id="comment-">
@@ -308,7 +308,7 @@ class Walker_Comment extends Walker { protected function html5_comment( $comment, $depth, $args ) { $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; ?> - < id="comment-" has_children ? 'parent' : '' ); ?>> + < id="comment-" has_children ? 'parent' : '', $comment ); ?>>