[wp-trac] [WordPress Trac] #39789: Posting comments via API results in 401 unauthorized
WordPress Trac
noreply at wordpress.org
Sun Feb 5 15:58:39 UTC 2017
#39789: Posting comments via API results in 401 unauthorized
-------------------------------------------------+-------------------------
Reporter: martinmalinda | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: HTTP API | Review
Severity: normal | Version: 4.7.2
Focuses: javascript, administration, rest- | Keywords:
api |
-------------------------------------------------+-------------------------
Even though in settings I have checked that anyone can post comments (+
approval), server returns 401 unauthorized on these requests.
However, those posts do get saved in the database and they do show up in
the article section in wp-admin, but the email notification about new post
is not sent.
If the approvals are turned off, it seems like the comments are rejected
altogether and they do not show up in the wp-admin.
{{{
{"code":"rest_comment_login_required","message":"Sorry, you must be logged
in to comment.","data":{"status":401}}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39789>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list