Unifying permission error messages
|Reported by:||ramiy||Owned by:||ocean90|
|Component:||Text Changes||Keywords:||good-first-bug has-patch|
Ok, so we have many many many types of error messages. In this ticket I will try to fix/unify the use of the You are not allowed to ... strings.
See the strings:
As you can see in the links above, the majority of the strings are using the You are not allowed to ... prefix. But some strings use other prefixes:
- You are not allowed to ... - the most popular prefix
- Sorry, you are not allowed to ...
- Sorry, you do not have the right to ...
- Sorry, you cannot ...
I noticed that the Sorry, prefix is used only in class-wp-xmlrpc-server.php file. In the attached patch, I've removed the Sorry, prefix to create a unified error message changing and updating the different prefixes mentioned above.
Note: WordPress has many types of error messages, in this ticket I'm trying to unify the error messages that you usually see after the if ( ! current_user_can( 'xxx' ) ) check.
Change History (79)
- Summary changed from Translation strings - "You are not allowed to ..." to Unifying permission error messages
- Keywords early added
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to enhancement
- Keywords needs-refresh added; early removed
- Keywords good-first-bug needs-patch added; has-patch needs-refresh removed
- Milestone changed from 4.5 to Future Release
- Type changed from task (blessed) to enhancement
- Keywords needs-refresh removed
- Milestone changed from Future Release to 4.6
- Owner changed from SergeyBiryukov to ocean90
- Status changed from reviewing to accepted
- Resolution fixed deleted
- Status changed from closed to reopened