Make WordPress Core


Ignore:
Timestamp:
09/03/2015 08:53:23 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Provide more helpful feedback than just "Cheatin' uh?" for permission errors in wp-admin/users.php.

props ericlewis, kraftbj, lukecarbis, mrmist.
fixes #33679. see #14530.

File:
1 edited

Legend:

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

    r33861 r33885  
    24122412
    24132413        if ( ! current_user_can( 'list_users' ) )
    2414             return new IXR_Error( 401, __( 'Sorry, you cannot list users.' ) );
     2414            return new IXR_Error( 401, __( 'You are not allowed to browse users.' ) );
    24152415
    24162416        $query = array( 'fields' => 'all_with_meta' );
Note: See TracChangeset for help on using the changeset viewer.