Changeset 13231
- Timestamp:
- 02/19/2010 08:27:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r13206 r13231 1583 1583 $email = $user->user_email; 1584 1584 } elseif ( is_object($id_or_email) ) { 1585 if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type && 'comment' != $id_or_email->comment_type ) 1586 return false; // No avatar for pingbacks or trackbacks 1585 // No avatar for pingbacks or trackbacks 1586 $allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) ); 1587 if ( ! empty( $id_or_email->comment_type ) && ! in_array( $id_or_email->comment_type, (array) $allowed_comment_types ) ) 1588 return false; 1587 1589 1588 1590 if ( !empty($id_or_email->user_id) ) {
Note: See TracChangeset
for help on using the changeset viewer.