Changeset 10933 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/ui.php
- Timestamp:
- 04/29/2021 05:36:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/ui.php
r10928 r10933 7 7 'index.php', 8 8 'Pending User Registrations', 'Pending User Registrations', 9 ' manage_users',9 'promote_users', 10 10 'user-registrations', 11 11 'wporg_login_admin_page' … … 90 90 91 91 add_action( 'admin_post_login_resend_email', function() { 92 if ( ! current_user_can( ' manage_users' ) ) {92 if ( ! current_user_can( 'promote_users' ) ) { 93 93 wp_die(); 94 94 } … … 115 115 116 116 add_action( 'admin_post_login_mark_as_cleared', function() { 117 if ( ! current_user_can( ' manage_users' ) ) {117 if ( ! current_user_can( 'promote_users' ) ) { 118 118 wp_die(); 119 119 } … … 144 144 145 145 add_action( 'admin_post_login_block', function() { 146 if ( ! current_user_can( ' manage_users' ) ) {146 if ( ! current_user_can( 'promote_users' ) ) { 147 147 wp_die(); 148 148 } … … 174 174 175 175 add_action( 'admin_post_login_delete', function() { 176 if ( ! current_user_can( ' manage_users' ) ) {176 if ( ! current_user_can( 'promote_users' ) ) { 177 177 wp_die(); 178 178 } … … 200 200 201 201 add_action( 'admin_post_login_block_account', function() { 202 if ( ! current_user_can( ' manage_users' ) ) {202 if ( ! current_user_can( 'promote_users' ) ) { 203 203 wp_die(); 204 204 }
Note: See TracChangeset
for help on using the changeset viewer.