Make WordPress Core

Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#5723 closed enhancement (duplicate)

Clearer error response to reject non-draft entries from Contributor

Reported by: toydi's profile toydi Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.7
Component: XML-RPC Keywords: has-patch 2nd-opinion
Focuses: Cc:

Description

Currently, user with "Contributor" role can submit new drafts, but not publish new posts.

In wp-app.php, if a contributor forgets to set app:draft to 'yes' and submits a new post, the server rejects the request with an error message. But currently, the error message does not clearly mention what actually went wrong.

[Current Response]
401 Unauthorized
"Sorry, you do not have the right to edit/publish new posts."

So, here is a proposed response, which informs the contributor that: 1) you do not have the right to publish new posts, but 2) you may submit the post as draft for review.

[Proposed Response]
401 Unauthorized
"Sorry, you do not have the right to publish new posts. Please submit your post as draft for review."

Attachments (2)

wp-app.diff (1.2 KB) - added by toydi 17 years ago.
patch with the proposed response message
wp-app.patch (1.2 KB) - added by mrmist 16 years ago.
refreshed against 10257

Download all attachments as: .zip

Change History (8)

@toydi
17 years ago

patch with the proposed response message

#1 @lloydbudd
17 years ago

  • Cc rubys josephscott added

@mrmist
16 years ago

refreshed against 10257

#2 @mrmist
16 years ago

  • Keywords has-patch needs-testing added
  • Version set to 2.7

#3 @mrmist
16 years ago

See also #5725

#4 @Denis-de-Bernardy
15 years ago

  • Keywords 2nd-opinion added; needs-testing removed

-1. it should autocorrect and give feedback

#5 @Denis-de-Bernardy
15 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

as is done in #5725

#6 @mtekk
15 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.