WordPress.org

Make WordPress Core

Opened 7 weeks ago

Closed 7 weeks ago

Last modified 7 weeks ago

#53342 closed defect (bug) (invalid)

Number of comments should be an integer

Reported by: Djibs13 Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.7.2
Component: REST API Keywords:
Focuses: rest-api Cc:

Description

Hello,

In the API, the number of comments in a post is indicated as a string when it should be an integer

Attachments (1)

DJIBS 2021-06-06 à 14.46.30.jpg (36.5 KB) - added by Djibs13 7 weeks ago.

Download all attachments as: .zip

Change History (3)

#1 @johnbillion
7 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the report @Djibs13 . 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.

#2 @Djibs13
7 weeks ago

Indeed, the number of comments is added by a plugin. Sorry

Note: See TracTickets for help on using tickets.