mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Provide more helpful feedback than just "Cheatin' uh?" for permission errors in wp-admin/edit.php.
props ericlewis, kraftbj, lukecarbis, mrmist. fixes #33671. see #14530. git-svn-id: https://develop.svn.wordpress.org/trunk@33861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1733,7 +1733,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
}
|
||||
|
||||
if ( ! current_user_can( $post_type->cap->edit_posts ) )
|
||||
return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type' ));
|
||||
return new IXR_Error( 401, __( 'You are not allowed to edit posts in this post type.' ));
|
||||
|
||||
$query['post_type'] = $post_type->name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user