private function handle_move_site() {
		$site_id     = filter_input( INPUT_GET, 'blog_id', FILTER_SANITIZE_NUMBER_INT );
		$new_network = filter_input( INPUT_POST, 'to', FILTER_SANITIZE_NUMBER_INT );

		if ( empty( $site_id ) ) {
			wp_safe_redirect( add_query_arg( array(
				'site_moved' => 0,
			), network_admin_url( 'sites.php' ) ) );
			exit;
		}

		$site = get_site( $site_id );

		// Bail if site cannot be found or new network is the same as existing.
		if ( empty( $site ) || ( $site->network_id === $new_network ) ) {
			wp_safe_redirect( add_query_arg( array(
				'site_moved' => 0,
			), network_admin_url( 'sites.php' ) ) );
			exit;
		}

		$moved   = move_site( $site_id, $new_network );
		$success = is_wp_error( $moved ) ? '0' : '1';

		wp_safe_redirect( add_query_arg( array(
			'site_moved' => $success,
		), network_admin_url( 'sites.php' ) ) );
		exit;
	}
private function handle_move_site() {
		$site_id     = filter_input( INPUT_GET, 'blog_id', FILTER_SANITIZE_NUMBER_INT );
		$new_network = filter_input( INPUT_POST, 'to', FILTER_SANITIZE_NUMBER_INT );

		if ( empty( $site_id ) ) {
			wp_safe_redirect( add_query_arg( array(
				'site_moved' => 0,
			), network_admin_url( 'sites.php' ) ) );
			exit;
		}

		$site = get_site( $site_id );

		// Bail if site cannot be found or new network is the same as existing.
		if ( empty( $site ) || ( $site->network_id === $new_network ) ) {
			wp_safe_redirect( add_query_arg( array(
				'site_moved' => 0,
			), network_admin_url( 'sites.php' ) ) );
			exit;
		}

		$moved   = move_site( $site_id, $new_network );
		$success = is_wp_error( $moved ) ? '0' : '1';

		wp_safe_redirect( add_query_arg( array(
			'site_moved' => $success,
		), network_admin_url( 'sites.php' ) ) );
		exit;
	}
private function handle_move_site ( ) { $ site_id = filter_input ( INPUT_GET , 'blog_id' , FILTER_SANITIZE_NUMBER_INT ) ; $ new_network = filter_input ( INPUT_POST , 'to' , FILTER_SANITIZE_NUMBER_INT ) ; if ( empty ( $ site_id ) ) { wp_safe_redirect ( add_query_arg ( array ( 'site_moved' => 0 , ) , network_admin_url ( 'sites.php' ) ) ) ; exit ; } $ site = get_site ( $ site_id ) ; // Bail if site cannot be found or new network is the same as existing. if ( empty ( $ site ) || ( $ site -> network_id === $ new_network ) ) { wp_safe_redirect ( add_query_arg ( array ( 'site_moved' => 0 , ) , network_admin_url ( 'sites.php' ) ) ) ; exit ; } $ moved = move_site ( $ site_id , $ new_network ) ; $ success = is_wp_error ( $ moved ) ? '0' : '1' ; wp_safe_redirect ( add_query_arg ( array ( 'site_moved' => $ success , ) , network_admin_url ( 'sites.php' ) ) ) ; exit ; }
Handles the request to move a site to another network.

@since 2.0.0
Handles the request to move a site to another network .