Changeset 15836 for trunk/wp-admin/network/edit.php
- Timestamp:
- 10/18/2010 06:53:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/edit.php
r15830 r15836 399 399 400 400 update_blog_status( $id, 'archived', '1' ); 401 do_action( 'archive_blog', $id );402 401 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'archive' ), wp_get_referer() ) ); 403 402 exit(); … … 409 408 wp_die( __( 'You do not have permission to access this page.' ) ); 410 409 411 do_action( 'unarchive_blog', $id );412 410 update_blog_status( $id, 'archived', '0' ); 413 411 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unarchive' ), wp_get_referer() ) ); … … 454 452 update_blog_status( $id, 'spam', '1' ); 455 453 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'spam' ), wp_get_referer() ) ); 454 exit(); 455 break; 456 457 case 'unmatureblog': 458 check_admin_referer( 'unmatureblog' ); 459 if ( ! current_user_can( 'manage_sites' ) ) 460 wp_die( __( 'You do not have permission to access this page.' ) ); 461 462 update_blog_status( $id, 'mature', '0' ); 463 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) ); 464 exit(); 465 break; 466 467 case 'matureblog': 468 check_admin_referer( 'matureblog' ); 469 if ( ! current_user_can( 'manage_sites' ) ) 470 wp_die( __( 'You do not have permission to access this page.' ) ); 471 472 update_blog_status( $id, 'mature', '1' ); 473 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) ); 456 474 exit(); 457 475 break;
Note: See TracChangeset
for help on using the changeset viewer.