Make WordPress Core


Ignore:
Timestamp:
09/02/2015 06:14:14 PM (9 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r33734 r33861  
    17341734
    17351735        if ( ! current_user_can( $post_type->cap->edit_posts ) )
    1736             return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type' ));
     1736            return new IXR_Error( 401, __( 'You are not allowed to edit posts in this post type.' ));
    17371737
    17381738        $query['post_type'] = $post_type->name;
Note: See TracChangeset for help on using the changeset viewer.