Changeset 14404 for trunk/wp-admin/ms-edit.php
- Timestamp:
- 05/03/2010 08:26:11 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-edit.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-edit.php
r14374 r14404 330 330 if ( ! current_user_can( 'manage_sites' ) ) 331 331 wp_die( __( 'You do not have permission to access this page.' ) ); 332 332 333 333 if ( $_GET['action'] != -1 || $_POST['action2'] != -1 ) 334 334 $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2']; … … 455 455 header( 'Content-Type: text/html; charset=utf-8' ); 456 456 } 457 if ( $current_site->blog_id == $id ) 457 if ( $current_site->blog_id == $id ) 458 458 wp_die( __( 'You are not allowed to change the current site.' ) ); 459 459 ?> … … 490 490 if ( $id != '0' && $id != '1' ) { 491 491 $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays 492 $title = __( 'Users' ); 493 $parent_file = 'ms-admin.php'; 492 $title = __( 'Users' ); 493 $parent_file = 'ms-admin.php'; 494 494 require_once( 'admin-header.php' ); 495 495 echo '<div class="wrap">'; … … 499 499 exit(); 500 500 } else { 501 wp_redirect( admin_url( 'ms-users.php' ) ); 501 wp_redirect( admin_url( 'ms-users.php' ) ); 502 502 } 503 503 break; … … 517 517 switch ( $doaction ) { 518 518 case 'delete': 519 $title = __( 'Users' ); 520 $parent_file = 'ms-admin.php'; 519 $title = __( 'Users' ); 520 $parent_file = 'ms-admin.php'; 521 521 require_once( 'admin-header.php' ); 522 522 echo '<div class="wrap">'; … … 544 544 $userfunction = 'all_notspam'; 545 545 $blogs = get_blogs_of_user( $val, true ); 546 foreach ( (array) $blogs as $key => $details ) 546 foreach ( (array) $blogs as $key => $details ) 547 547 update_blog_status( $details->userblog_id, 'spam', '0' ); 548 548 549 549 update_user_status( $val, 'spam', '0', 1 ); 550 550 break; 551 } 552 } 551 } 552 } 553 553 } 554 554 … … 579 579 foreach( $_POST['user'] as $id ) { 580 580 wpmu_delete_user( $id ); 581 $i++; 581 $i++; 582 582 } 583 583
Note: See TracChangeset
for help on using the changeset viewer.