Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33903 closed defect (bug) (fixed)

Documentation for $comment_approved parameter is incomplete

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

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 11 years ago.
Document the possible 'string' value of $comment_approved.

Download all attachments as: .zip

Change History (4)

@cfinke
11 years ago

Document the possible 'string' value of $comment_approved.

#1 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review → 4.4

#2 @SergeyBiryukov
11 years ago

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

#3 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.