Make WordPress Core

Changeset 33829


Ignore:
Timestamp:
08/31/2015 09:08:17 PM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r33828 r33829  
    653653
    654654        if ( $this->user_can ) {
    655             if ( !empty( $comment->comment_author_email ) ) {
    656                 $GLOBALS['comment'] = $comment;
    657                 comment_author_email_link();
    658                 echo '<br />';
    659                 unset( $GLOBALS['comment'] );
     655            if ( ! empty( $comment->comment_author_email ) ) {
     656                $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
     657                if ( ! empty( $email ) && '@' !== $email ) {
     658                    printf( '<a href=\'mailto:%1$s\'>%1$s</a><br />', $email );
     659                }
    660660            }
    661661
Note: See TracChangeset for help on using the changeset viewer.