Changeset 30356 for trunk/src/wp-admin/user-new.php
- Timestamp:
- 11/16/2014 06:15:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-new.php
r30033 r30356 12 12 if ( is_multisite() ) { 13 13 if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) 14 wp_die( __( 'Cheatin’ uh?' ) );14 wp_die( __( 'Cheatin’ uh?' ), 403 ); 15 15 } elseif ( ! current_user_can( 'create_users' ) ) { 16 wp_die( __( 'Cheatin’ uh?' ) );16 wp_die( __( 'Cheatin’ uh?' ), 403 ); 17 17 } 18 18 … … 56 56 57 57 if ( ! current_user_can('promote_user', $user_details->ID) ) 58 wp_die( __('Cheatin’ uh?'));58 wp_die( __( 'Cheatin’ uh?' ), 403 ); 59 59 60 60 // Adding an existing user to this blog … … 93 93 94 94 if ( ! current_user_can('create_users') ) 95 wp_die( __('Cheatin’ uh?'));95 wp_die( __( 'Cheatin’ uh?' ), 403 ); 96 96 97 97 if ( ! is_multisite() ) {
Note: See TracChangeset
for help on using the changeset viewer.