Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39789 closed defect (bug) (invalid)

Posting comments via API results in 401 unauthorized

Reported by: martinmalinda Owned by:
Priority: normal Milestone:
Component: Comments Version: 4.7.2
Severity: normal Keywords: close
Cc: Focuses: administration, rest-api

Description

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}}

Change History (4)

#1 @SergeyBiryukov
10 years ago

  • Component HTTP API → Comments

#2 @swissspidy
10 years ago

This is by design, see #38855

#3 @rachelbaker
10 years ago

  • Focuses javascript removed
  • Keywords close added

#4 @swissspidy
10 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed
Note: See TracTickets for help on using tickets.