From e10c682b8336769dfa97395ac11d9edbaa0ba878 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 31 Aug 2015 21:08:17 +0000 Subject: [PATCH] Remove the hamburger global'ing from [33828]: since no args are passed to `comment_author_email_link()`, the internals can be simplified and applied inline. See #11566. git-svn-id: https://develop.svn.wordpress.org/trunk@33829 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 95e6ab30fb..d1d518240f 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -652,11 +652,11 @@ class WP_Comments_List_Table extends WP_List_Table { } if ( $this->user_can ) { - if ( !empty( $comment->comment_author_email ) ) { - $GLOBALS['comment'] = $comment; - comment_author_email_link(); - echo '
'; - unset( $GLOBALS['comment'] ); + if ( ! empty( $comment->comment_author_email ) ) { + $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment ); + if ( ! empty( $email ) && '@' !== $email ) { + printf( '%1$s
', $email ); + } } $author_ip = get_comment_author_IP( $comment->comment_ID );