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

WordPress Trac noreply at wordpress.org
Sun Oct 23 09:55:48 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                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  docs
--------------------------------------+-----------------------------

Comment (by pkostadinov):

 I have modified:

  * the function description, to reflect correctly the return type of the
 function.
  * the hard-coded return value, to reflect correctly the function
 description.
  * added new unit test accounting for return type.

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


More information about the wp-trac mailing list