[wp-trac] [WordPress Trac] #5723: Clearer error response to reject non-draft entries from Contributor

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 26 08:42:48 GMT 2008


#5723: Clearer error response to reject non-draft entries from Contributor
-------------------------+--------------------------------------------------
 Reporter:  toydi        |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.6      
Component:  XML-RPC      |     Version:           
 Severity:  minor        |    Keywords:           
-------------------------+--------------------------------------------------
 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][[BR]]
 401 Unauthorized[[BR]]
 "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][[BR]]
 401 Unauthorized[[BR]]
 "Sorry, you do not have the right to publish new posts. Please submit your
 post as draft for review."

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5723>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list