Make WordPress Core

Opened 5 days ago

#49206 new defect (bug)

Update `wp_allow_comment()` and `pre_comment_approved` docs with possible `trash` return value

Reported by: jeremyfelt Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch good-first-bug
Focuses: docs Cc:
PR Number:


In wp_allow_comment(), if wp_blacklist_check() is true and EMPTY_TRASH_DAYS is defined and truthy, then trash is returned for the value of $approved.

The docs for wp_allow_comment() and the pre_comment_approved filter should be updated to reflect this.

Change History (0)

Note: See TracTickets for help on using tickets.