#15 closed defect (bug) (fixed)
get_commentdata() does not return comment moderation status
| Reported by: | skippy | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
Description
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) {
$myrowcomment_approved=$psotc->comment_approved;
}
Thus people can parse moderation status from the returned info.
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
duh. That fix should be:
if (true == $include_unapproved) {
}