[wp-trac] [WordPress Trac] #11880: Avatars in Custom Comment Type

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 12 19:03:22 UTC 2010


#11880: Avatars in Custom Comment Type
-------------------------+--------------------------------------------------
 Reporter:  usermrpapa   |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  3.0  
Component:  Comments     |     Version:  2.9.1
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------

Comment(by nacin):

 If we change this, any custom comment type will suddenly have gravar
 support, *and* there will be no way to turn it off without overriding
 get_avatar().

 Something like:

 {{{
 if ( isset($id_or_email->comment_type)
    && '' != $id_or_email->comment_type
    && ! in_array( $id_or_email->comment_type,
       apply_filters( 'get_avatar_comment_types', array( 'comment' ),
 $id_or_email->comment_type ) ) )
 }}}

 Kind of messy, but it allows for a plugin to add to a whitelist of comment
 types that should support get_avatar().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11880#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list