[wp-trac] [WordPress Trac] #20494: comment_exists function return inconsitly values

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 20 08:10:39 UTC 2012


#20494: comment_exists function return inconsitly values
---------------------------+-----------------------------
 Reporter:  momo360modena  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Comments       |    Version:  3.4
 Severity:  minor          |   Keywords:  has-patch
---------------------------+-----------------------------
 Hey,

 The function comment_exists() return comment_post_ID instead comment_ID

 PHPdoc say:
 {{{
 @return mixed Comment ID on success.
 }}}

 I submit 2 patches, one which only corrects the bug
 And an another one with an additionnal parameter for this function, post
 id.

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


More information about the wp-trac mailing list