diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index c328781edc..ca0a5e79dd 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -177,72 +177,6 @@ function wpmu_delete_user( $id ) { return true; } -function confirm_delete_users( $users ) { - $current_user = wp_get_current_user(); - if ( !is_array( $users ) ) - return false; - - screen_icon(); - ?> -
- - - + + + + options page.', esc_url( admin_url( 'ms-options.php' ) ) ) ) ); + wp_die( sprintf( __( 'You probably need to go back to the options page.', esc_url( admin_url( 'settings.php' ) ) ) ) ); if ( isset($_POST['WPLANG']) && ( '' === $_POST['WPLANG'] || in_array( $_POST['WPLANG'], get_available_languages() ) ) ) update_site_option( 'WPLANG', $_POST['WPLANG'] ); @@ -133,7 +199,7 @@ switch ( $_GET['action'] ) { // Update more options here do_action( 'update_wpmu_options' ); - wp_redirect( add_query_arg( 'updated', 'true', admin_url( 'ms-options.php' ) ) ); + wp_redirect( add_query_arg( 'updated', 'true', admin_url( 'settings.php' ) ) ); exit(); break; case 'addblog': @@ -208,7 +274,7 @@ switch ( $_GET['action'] ) { wp_die( __( 'You do not have permission to access this page.' ) ); if ( empty( $_POST ) ) - wp_die( sprintf( __( 'You probably need to go back to the sites page', esc_url( admin_url( 'ms-sites.php' ) ) ) ) ); + wp_die( sprintf( __( 'You probably need to go back to the sites page', esc_url( network_admin_url( 'sites.php' ) ) ) ) ); switch_to_blog( $id ); @@ -367,7 +433,7 @@ switch ( $_GET['action'] ) { wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) ); exit(); } else { - wp_redirect( admin_url( 'ms-sites.php' ) ); + wp_redirect( network_admin_url( 'sites.php' ) ); } break; @@ -476,7 +542,7 @@ switch ( $_GET['action'] ) { -