Changeset 42811 for branches/4.9/src/wp-admin/user-new.php
- Timestamp:
- 03/09/2018 12:14:20 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 42648,42719
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/user-new.php
r42264 r42811 13 13 if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) { 14 14 wp_die( 15 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .15 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 16 16 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 17 17 403 … … 20 20 } elseif ( ! current_user_can( 'create_users' ) ) { 21 21 wp_die( 22 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .22 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 23 23 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 24 24 403 … … 53 53 if ( ! current_user_can( 'promote_user', $user_details->ID ) ) { 54 54 wp_die( 55 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .55 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 56 56 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 57 57 403 … … 119 119 if ( ! current_user_can( 'create_users' ) ) { 120 120 wp_die( 121 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .121 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 122 122 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 123 123 403
Note: See TracChangeset
for help on using the changeset viewer.