From 9ab431873cc8309022897061e257c768e27c2668 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 06:11:35 +0000 Subject: [PATCH] After [33961], pass `$comment` to `comment_class()` where possible to avoid extra cache/db lookups. See #33638. git-svn-id: https://develop.svn.wordpress.org/trunk@34040 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- src/wp-includes/class-walker-comment.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index b0631ff28b..2d10b06429 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -629,7 +629,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { ?> -
> +
> diff --git a/src/wp-includes/class-walker-comment.php b/src/wp-includes/class-walker-comment.php index 4d10278c9d..c8c379961b 100644 --- a/src/wp-includes/class-walker-comment.php +++ b/src/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 ); ?>>