CommentPostController final readonly class
Minn\Front\CommentPostController · public/minn/src/Minn/Front/CommentPostController.php · 52 lines
wp-comments-post.php: the comment form's target. The reference's answers, captured: 302 to the comment's anchor (with unapproved and moderation-hash when held), plain pages with 200 for a missing field, 403 when comments are closed, 409 for a duplicate, 429 for posting too quickly, and 405 for anything but POST.
Public
| method | post(Minn\Http\Request $request): Minn\Http\Response* /wp-comments-post.php (public)# | The comment form's target. |
Internals 2
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | submit(Minn\Http\Request $request): Minn\Http\Response# | The reference's own submission and redirect (contracts/runtime.md "The comment form"), so a spam plugin's checks, the notifications and the commenter cookies are WordPress's: a refusal with a status is the refusal page, one without is a blank page; else set_comment_cookies, the comment's link (or redirect_to), the held comment's id and hash when the commenter is not remembered, comment_post_redirect, and wp_safe_redirect's checks. |
| private | refusal(string $message, int $status): Minn\Http\Response# | The reference's plain refusal page: the message and a way back. |
Nothing matches.