[wp-trac] [WordPress Trac] #53342: Number of comments should be an integer

WordPress Trac noreply at wordpress.org
Sun Jun 6 14:13:56 UTC 2021


#53342: Number of comments should be an integer
--------------------------+-----------------------
 Reporter:  Djibs13       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  5.7.2
 Severity:  minor         |  Resolution:  invalid
 Keywords:                |     Focuses:  rest-api
--------------------------+-----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the report @Djibs13 . [https://github.com/WordPress/wordpress-
 develop/blob/aea1ccbab45865a3ba5433f0d8d6496d16ff7c5e/src/wp-includes
 /rest-api/endpoints/class-wp-rest-posts-controller.php#L2154 There is no
 `comments` property by default] so it looks like this is being added by a
 plugin on your site.

 You may want to deactivate your plugins one by one to identify which one
 is adding that property.

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


More information about the wp-trac mailing list