Changeset 5629 for branches/2.5/includes/admin/users.php
- Timestamp:
- 03/06/2015 04:27:09 PM (11 years ago)
- File:
-
- 1 edited
-
branches/2.5/includes/admin/users.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/admin/users.php
r4995 r5629 143 143 <?php endforeach; ?> 144 144 </select><?php submit_button( __( 'Change', 'bbpress' ), 'secondary', 'bbp-change-role', false ); 145 146 wp_nonce_field( 'bbp-bulk-users', 'bbp-bulk-users-nonce' ); 145 147 } 146 148 … … 157 159 public function user_role_bulk_change() { 158 160 159 // Bail if current user cannot promote users160 if ( !current_user_can( 'promote_users' ) )161 return;162 163 161 // Bail if no users specified 164 162 if ( empty( $_REQUEST['users'] ) ) … … 172 170 $dynamic_roles = bbp_get_dynamic_roles(); 173 171 if ( empty( $dynamic_roles[ $_REQUEST['bbp-new-role'] ] ) ) 172 return; 173 174 // Bail if nonce check fails 175 check_admin_referer( 'bbp-bulk-users', 'bbp-bulk-users-nonce' ); 176 177 // Bail if current user cannot promote users 178 if ( !current_user_can( 'promote_users' ) ) 174 179 return; 175 180
Note: See TracChangeset
for help on using the changeset viewer.