WordPress.org

Make WordPress Core

Ticket #10863: avatar.diff

File avatar.diff, 509 bytes (added by thecodepro, 9 years ago)

adds code to use IP address if email is empty for gravatar handoff

  • wp-includes/pluggable.php

     
    15601560                                $email = $user->user_email;
    15611561                } elseif ( !empty($id_or_email->comment_author_email) ) {
    15621562                        $email = $id_or_email->comment_author_email;
     1563                } elseif ( !empty($id_or_email->comment_author_IP) ) {
     1564                        $email = $id_or_email->comment_author_IP;
    15631565                }
    15641566        } else {
    15651567                $email = $id_or_email;