Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#53342 closed defect (bug) (invalid)

Number of comments should be an integer

Reported by: djibs13's profile 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 3 years ago.

Download all attachments as: .zip

Change History (3)

#1 @johnbillion
3 years 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
3 years ago

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

Note: See TracTickets for help on using tickets.