From f7507e511d5c0c6572f1db6686dde779c19d331c Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 31 Aug 2015 21:21:14 +0000 Subject: [PATCH] Docs: Add a duplicate filter comment to the `comment_email` filter call in `WP_Comments_List_Table`, introduced in [33829]. See #11566. git-svn-id: https://develop.svn.wordpress.org/trunk@33830 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 2 ++ 1 file changed, 2 insertions(+) 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 d1d518240f..0d2d16eb8a 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -653,7 +653,9 @@ class WP_Comments_List_Table extends WP_List_Table { if ( $this->user_can ) { if ( ! empty( $comment->comment_author_email ) ) { + /* This filter is documented in wp-includes/comment-template.php */ $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment ); + if ( ! empty( $email ) && '@' !== $email ) { printf( '%1$s
', $email ); }