Ticket #14385: 14385.3.patch
File 14385.3.patch, 1.7 KB (added by , 15 years ago) |
---|
-
wp-admin/ms-edit.php
420 420 if ( ! current_user_can( 'manage_sites' ) ) 421 421 wp_die( __( 'You do not have permission to access this page.' ) ); 422 422 423 do_action( 'unspam_blog', $id ); 423 424 update_blog_status( $id, 'spam', '0' ); 424 425 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unspam' ), wp_get_referer() ) ); 425 426 exit(); … … 430 431 if ( ! current_user_can( 'manage_sites' ) ) 431 432 wp_die( __( 'You do not have permission to access this page.' ) ); 432 433 434 do_action( 'spam_blog', $id ); 433 435 update_blog_status( $id, 'spam', '1' ); 434 436 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'spam' ), wp_get_referer() ) ); 435 437 exit(); 436 438 break; 437 439 440 case 'unmatureblog': 441 check_admin_referer( 'unmatureblog' ); 442 if ( ! current_user_can( 'manage_sites' ) ) 443 wp_die( __( 'You do not have permission to access this page.' ) ); 444 445 do_action( 'unmature_blog', $id ); 446 update_blog_status( $id, 'mature', '0' ); 447 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) ); 448 exit(); 449 break; 450 451 case 'matureblog': 452 check_admin_referer( 'matureblog' ); 453 if ( ! current_user_can( 'manage_sites' ) ) 454 wp_die( __( 'You do not have permission to access this page.' ) ); 455 456 do_action( 'mature_blog', $id ); 457 update_blog_status( $id, 'mature', '1' ); 458 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) ); 459 exit(); 460 break; 461 438 462 // Themes 439 463 case 'updatethemes': 440 464 if ( ! current_user_can( 'manage_network_themes' ) )