Ticket #11880: avatar-r12716.patch
| File avatar-r12716.patch, 798 bytes (added by , 16 years ago) |
|---|
-
wp-includes/pluggable.php
1575 1575 if ( $user ) 1576 1576 $email = $user->user_email; 1577 1577 } elseif ( is_object($id_or_email) ) { 1578 if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type && 'comment' != $id_or_email->comment_type ) 1578 if ( isset($id_or_email->comment_type) 1579 && '' != $id_or_email->comment_type 1580 && ! in_array( $id_or_email->comment_type, 1581 apply_filters( 'get_avatar_comment_types', array( 'comment' ), $id_or_email->comment_type ) ) ) 1579 1582 return false; // No avatar for pingbacks or trackbacks 1580 1583 1581 1584 if ( !empty($id_or_email->user_id) ) {