Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33903 closed defect (bug) (fixed)

Documentation for $comment_approved parameter is incomplete

Reported by: cfinke's profile cfinke Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: Comments Keywords:
Focuses: docs Cc:

Description

The $comment_approved parameter for wp_new_comment_notify_moderator() and the comment_post action is documented as being an int that can be either 0 or 1, but it can also have the string value spam.

Patch forthcoming.

Attachments (1)

33903.1.diff (1.1 KB) - added by cfinke 9 years ago.
Document the possible 'string' value of $comment_approved.

Download all attachments as: .zip

Change History (4)

@cfinke
9 years ago

Document the possible 'string' value of $comment_approved.

#1 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 4.4

#2 @SergeyBiryukov
9 years ago

The wp_new_comment_notify_moderator() argument was removed in [34252].

#3 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 34253:

Docs: Expand the $comment_approved argument description for 'comment_post' action.

Props cfinke.
Fixes #33903.

Note: See TracTickets for help on using tickets.