private function handle_update_network() {
		$network_id = filter_input( INPUT_POST, 'network_id', FILTER_SANITIZE_NUMBER_INT );

		// Bail if invalid network.
		if ( ! get_network( $network_id ) ) {
			wp_die( esc_html__( 'Invalid network id.', 'wp-multi-network' ) );
		}

		$network_title  = wp_unslash( filter_input( INPUT_POST, 'title', FILTER_SANITIZE_STRING ) );
		$network_domain = wp_unslash( filter_input( INPUT_POST, 'domain', FILTER_SANITIZE_STRING ) );
		$network_path   = wp_unslash( filter_input( INPUT_POST, 'path', FILTER_SANITIZE_STRING ) );

		$network_title  = sanitize_text_field( $network_title );
		$network_domain = Requests_IDNAEncoder::encode( str_replace( ' ', '', strtolower( sanitize_text_field( $network_domain ) ) ) );
		$network_path   = str_replace( ' ', '', strtolower( sanitize_text_field( $network_path ) ) );

		// Bail if missing fields.
		if ( empty( $network_title ) || empty( $network_domain ) || empty( $network_path ) ) {
			$this->handle_redirect( array(
				'id'              => $network_id,
				'action'          => 'edit_network',
				'network_updated' => '0',
			) );
		}

		$updated = update_network( $network_id, $network_domain, $network_path );
		$success = '0';

		if ( ! is_wp_error( $updated ) ) {
			update_network_option( $network_id, 'site_name', $network_title );
			$success = '1';
		}

		$this->handle_redirect( array(
			'id'              => $network_id,
			'action'          => 'edit_network',
			'network_updated' => $success,
		) );
	}
private function handle_update_network() {
		$network_id = filter_input( INPUT_POST, 'network_id', FILTER_SANITIZE_NUMBER_INT );

		// Bail if invalid network.
		if ( ! get_network( $network_id ) ) {
			wp_die( esc_html__( 'Invalid network id.', 'wp-multi-network' ) );
		}

		$network_title  = wp_unslash( filter_input( INPUT_POST, 'title', FILTER_SANITIZE_STRING ) );
		$network_domain = wp_unslash( filter_input( INPUT_POST, 'domain', FILTER_SANITIZE_STRING ) );
		$network_path   = wp_unslash( filter_input( INPUT_POST, 'path', FILTER_SANITIZE_STRING ) );

		$network_title  = sanitize_text_field( $network_title );
		$network_domain = Requests_IDNAEncoder::encode( str_replace( ' ', '', strtolower( sanitize_text_field( $network_domain ) ) ) );
		$network_path   = str_replace( ' ', '', strtolower( sanitize_text_field( $network_path ) ) );

		// Bail if missing fields.
		if ( empty( $network_title ) || empty( $network_domain ) || empty( $network_path ) ) {
			$this->handle_redirect( array(
				'id'              => $network_id,
				'action'          => 'edit_network',
				'network_updated' => '0',
			) );
		}

		$updated = update_network( $network_id, $network_domain, $network_path );
		$success = '0';

		if ( ! is_wp_error( $updated ) ) {
			update_network_option( $network_id, 'site_name', $network_title );
			$success = '1';
		}

		$this->handle_redirect( array(
			'id'              => $network_id,
			'action'          => 'edit_network',
			'network_updated' => $success,
		) );
	}
private function handle_update_network ( ) { $ network_id = filter_input ( INPUT_POST , 'network_id' , FILTER_SANITIZE_NUMBER_INT ) ; // Bail if invalid network. if ( ! get_network ( $ network_id ) ) { wp_die ( esc_html__ ( 'Invalid network id.' , 'wp-multi-network' ) ) ; } $ network_title = wp_unslash ( filter_input ( INPUT_POST , 'title' , FILTER_SANITIZE_STRING ) ) ; $ network_domain = wp_unslash ( filter_input ( INPUT_POST , 'domain' , FILTER_SANITIZE_STRING ) ) ; $ network_path = wp_unslash ( filter_input ( INPUT_POST , 'path' , FILTER_SANITIZE_STRING ) ) ; $ network_title = sanitize_text_field ( $ network_title ) ; $ network_domain = Requests_IDNAEncoder :: encode ( str_replace ( ' ' , '' , strtolower ( sanitize_text_field ( $ network_domain ) ) ) ) ; $ network_path = str_replace ( ' ' , '' , strtolower ( sanitize_text_field ( $ network_path ) ) ) ; // Bail if missing fields. if ( empty ( $ network_title ) || empty ( $ network_domain ) || empty ( $ network_path ) ) { $ this -> handle_redirect ( array ( 'id' => $ network_id , 'action' => 'edit_network' , 'network_updated' => '0' , ) ) ; } $ updated = update_network ( $ network_id , $ network_domain , $ network_path ) ; $ success = '0' ; if ( ! is_wp_error ( $ updated ) ) { update_network_option ( $ network_id , 'site_name' , $ network_title ) ; $ success = '1' ; } $ this -> handle_redirect ( array ( 'id' => $ network_id , 'action' => 'edit_network' , 'network_updated' => $ success , ) ) ; }
Handles the request to update a network.

@since 2.0.0
Handles the request to update a network .