Make WordPress Core

Ticket #25803: 25803.diff

File 25803.diff, 501 bytes (added by mauryaratan, 11 years ago)

check if $email is blank

  • wp-includes/pluggable.php

     
    16501650                        $user = get_userdata($id);
    16511651                        if ( $user)
    16521652                                $email = $user->user_email;
    1653                 } elseif ( !empty($id_or_email->comment_author_email) ) {
     1653                }
     1654
     1655                if ( empty($email) && !empty($id_or_email->comment_author_email) ) {
    16541656                        $email = $id_or_email->comment_author_email;
    16551657                }
    16561658        } else {