Changeset 33885
- Timestamp:
- 09/03/2015 08:53:23 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r33434 r33885 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( ! current_user_can( 'list_users' ) ) 13 wp_die( __( 'Cheatin’ uh?' ), 403 ); 12 if ( ! current_user_can( 'list_users' ) ) { 13 wp_die( 14 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 15 '<p>' . __( 'You are not allowed to browse users.' ) . '</p>', 16 403 17 ); 18 } 14 19 15 20 $wp_list_table = _get_list_table('WP_Users_List_Table'); … … 128 133 129 134 // If the user doesn't already belong to the blog, bail. 130 if ( is_multisite() && !is_user_member_of_blog( $id ) ) 131 wp_die( __( 'Cheatin’ uh?' ), 403 ); 135 if ( is_multisite() && !is_user_member_of_blog( $id ) ) { 136 wp_die( 137 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 138 '<p>' . __( 'One of the selected users in not a member of this site.' ) . '</p>', 139 403 140 ); 141 } 132 142 133 143 $user = get_userdata( $id ); -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r33861 r33885 2412 2412 2413 2413 if ( ! current_user_can( 'list_users' ) ) 2414 return new IXR_Error( 401, __( ' Sorry, you cannot listusers.' ) );2414 return new IXR_Error( 401, __( 'You are not allowed to browse users.' ) ); 2415 2415 2416 2416 $query = array( 'fields' => 'all_with_meta' );
Note: See TracChangeset
for help on using the changeset viewer.