[wp-trac] [WordPress Trac] #44033: Get Avatar Comment Types should be a Function Not Just a Filter

WordPress Trac noreply at wordpress.org
Thu May 10 00:15:55 UTC 2018


#44033: Get Avatar  Comment Types should be a Function Not Just a Filter
-------------------------+-----------------------------
 Reporter:  dshanske     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:
 Severity:  normal       |   Keywords:  good-first-bug
  Focuses:               |
-------------------------+-----------------------------
 Pretty much what it says.

 I envision, is_avatar_comment_type, that takes WP_Comment, or a comment_ID
 and returns true or false.

 Right now, if I want to use this filter in the code I use to bypass
 Gravatar, I have call the filter myself. I don't think it is a good idea
 to call filters multiple times if you can help it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44033>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list