diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index ab66c85c2..c49e18aab 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -430,28 +430,6 @@ switch ( $_GET['action'] ) { exit(); break; - case 'matureblog': - check_admin_referer( 'matureblog' ); - if ( ! current_user_can( 'manage_sites' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); - - update_blog_status( $id, 'mature', '1' ); - do_action( 'mature_blog', $id ); - wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) ); - exit(); - break; - - case 'unmatureblog': - check_admin_referer( 'unmatureblog' ); - if ( ! current_user_can( 'manage_sites' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); - - update_blog_status( $id, 'mature', '0' ); - do_action( 'unmature_blog', $id ); - wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) ); - exit(); - break; - // Themes case 'updatethemes': if ( ! current_user_can( 'manage_network_themes' ) ) diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index cf5ff7f54..ca36b1071 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -62,12 +62,6 @@ if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' && ! empty( $_GET[' case 'spam': _e( 'Site marked as spam.' ); break; - case 'unmature': - _e( 'Site marked as not mature.' ); - break; - case 'mature': - _e( 'Site marked as mature.' ); - break; default: _e( 'Settings saved.' ); break;