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

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 12 18:27:24 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:       
-------------------------+--------------------------------------------------
 currently, its possible to define a custom comment type and have them
 displayed interspersed within normal WP comments or in its own section.

 However, since the comment_type is custom, the get_avatar() function wont
 show avatars because of an explicit check for comment_type of comment.  A
 comment in the code says dont show avatars for pingbacks or trackbacks
 which makes sense, but it also ruins the chance to show avatars for custom
 comment types.  Also, the check and abort is before the avatar filter, so
 no chance to override.

 Sure would be nice if this statement:


 {{{
              if ( isset($id_or_email->comment_type) && '' !=
 $id_or_email->comment_type && 'comment' != $id_or_email->comment_type )
 }}}

 didnt explicitly check for comment_type of 'comment' only and instead
 checked for types not wanted (ie pingback or trackback).

 will try to work up a patch tonight.

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


More information about the wp-trac mailing list