[wp-trac] [WordPress Trac] #38369: Docs: Incorrect return type for get_comments_number()

WordPress Trac noreply at wordpress.org
Wed Oct 19 16:31:32 UTC 2016


#38369: Docs: Incorrect return type for get_comments_number()
--------------------------+----------------------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 `get_comments_number()` doesn't return an integer. It's a numeric string,
 [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
 post.php?marks=184&rev=38381#L181 for compatibility reasons].

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


More information about the wp-trac mailing list