Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#15 closed defect (bug) (fixed)

get_commentdata() does not return comment moderation status

Reported by: skippy's profile skippy Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: trivial Version:
Component: General Keywords:
Focuses: Cc:


get_commentdata() accepts an optional "$include_unapproved" parameter, but it does not include the moderation status of comments in the return. To correct this, add the following block somewhere before the return statement:
if (false == $include_unapproved) {


Thus people can parse moderation status from the returned info.

Change History (5)

#2 @skippy
20 years ago

duh. That fix should be:
if (true == $include_unapproved) {



#3 @ryan
20 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to assigned

#4 @ryan
20 years ago

  • Resolution changed from 10 to 20
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.