[wp-trac] Re: [WordPress Trac] #4916: comment_type function doesn't
return the comment type string
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 15:17:15 GMT 2007
#4916: comment_type function doesn't return the comment type string
-----------------------+----------------------------------------------------
Reporter: hudatoriq | Owner: hudatoriq
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 2.3
Severity: normal | Resolution:
Keywords: comment |
-----------------------+----------------------------------------------------
Changes (by hudatoriq):
* status: closed => reopened
* resolution: invalid =>
Comment:
Yes, there is get_comment_type() function. But it's rather different.
get_comment_type() only checks and returns the '''string code''' of the
type: 'trackback', 'pingback', and 'comment'. Whereas comment_type()
receives the '''labels''' of each '''string code''' thus selecting which
'''labels''' will be displayed on the page.
The function the_title() also has 'echo' parameter although there is
already get_the_title() function
http://trac.wordpress.org/browser/trunk/wp-includes/post-template.php#L19
--
Ticket URL: <http://trac.wordpress.org/ticket/4916#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list