[wp-trac] [WordPress Trac] #34362: Improvements to comment_type function

WordPress Trac noreply at wordpress.org
Mon Mar 7 18:33:59 UTC 2016

#34362: Improvements to comment_type function
 Reporter:  dshanske                       |       Owner:
     Type:  feature request                |      Status:  new
 Priority:  normal                         |   Milestone:  Future Release
Component:  Comments                       |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:

Comment (by dshanske):

 @rachelbaker I didn't write the patch. My original point was that there
 wasn't consistency in the functions compared to similar functions.

 My use case was custom comment types. But get_commment_type allows you to
 get the name of the type, not the presentation name. For example...

 'pingback' may be the comment type, but the presentation name might be
 Pingback or whatever in another language.

 Personally, I'd like to deprecate the first three parameters in favor of a
 filter, but that leads to backward compatibility issues.

Ticket URL: <https://core.trac.wordpress.org/ticket/34362#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list