[wp-trac] [WordPress Trac] #42267: i18n: Unify permission error messages in XMLRPC and REST API

WordPress Trac noreply at wordpress.org
Thu Oct 19 14:16:42 UTC 2017


#42267: i18n: Unify permission error messages in XMLRPC and REST API
---------------------------------------+-----------------------
 Reporter:  ramiy                      |       Owner:
     Type:  defect (bug)               |      Status:  reopened
 Priority:  normal                     |   Milestone:
Component:  I18N                       |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+-----------------------
Changes (by ramiy):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 @ocean90 all the permission errors are checked using `current_user_can()`
 function. the message structure will always be: "'''Sorry, you are not
 allowed to ... as this user'''".

 We should either add the suffix "as this user" to all the strings, or
 remove it. The goal is to '''unify''' the messages.

 Please review the ticket again.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42267#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list