Changeset 9028 for trunk/wp-admin/users.php
- Timestamp:
- 09/29/2008 09:26:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r9016 r9028 19 19 $parent_file = 'users.php'; 20 20 21 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; 22 $update = ''; 23 24 if ( empty($action) ) { 21 $update = $doaction = ''; 22 if ( isset($_REQUEST['action']) ) 23 $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2']; 24 25 if ( empty($doaction) ) { 25 26 if ( isset($_GET['changeit']) && !empty($_GET['new_role']) ) 26 $ action = 'promote';27 $doaction = 'promote'; 27 28 } 28 29 … … 37 38 } 38 39 39 switch ($ action) {40 switch ($doaction) { 40 41 41 42 case 'promote': … … 208 209 $userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null; 209 210 $role = isset($_GET['role']) ? $_GET['role'] : null; 210 211 211 212 // Query the users 212 213 $wp_user_search = new WP_User_Search($usersearch, $userspage, $role); 213 214 214 215 $messages = array(); 215 216 if ( isset($_GET['update']) ) : … … 259 260 </ul> 260 261 </div> 261 <?php endif; 262 <?php endif; 262 263 263 264 if ( ! empty($messages) ) { … … 359 360 </tr> 360 361 </thead> 362 363 <tfoot> 364 <tr class="thead"> 365 <?php print_column_headers('user', false) ?> 366 </tr> 367 </tfoot> 368 361 369 <tbody id="users" class="list:user user-list"> 362 370 <?php … … 379 387 <div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div> 380 388 <?php endif; ?> 389 390 <div class="alignleft"> 391 <select name="action2"> 392 <option value="" selected><?php _e('Actions'); ?></option> 393 <option value="delete"><?php _e('Delete'); ?></option> 394 </select> 395 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 396 </div> 381 397 382 398 <br class="clear" /> … … 475 491 break; 476 492 477 } // end of the $ action switch493 } // end of the $doaction switch 478 494 479 495 include('admin-footer.php');
Note: See TracChangeset
for help on using the changeset viewer.