public function route_save_handlers() {

		// Bail -- our fields aren't being edited
		// Otherwise we'll do an unnecessary nonce check
		if ( empty( $_POST['network_edit'] ) ) {
			return;
		}
		
		$action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING );
		if ( empty( $action ) ) {
			$alternative_actions = array( 'delete', 'delete_multiple', 'move' );
			foreach ( $alternative_actions as $alternative_action ) {
				if ( filter_input( INPUT_POST, $alternative_action ) ) {
					$action = $alternative_action;
					break;
				}
			}
		}

		switch ( $action ) {

			// Create network.
			case 'create':
				$this->check_nonce();
				$this->handle_add_network();
				break;

			// Update network.
			case 'update':
				$this->check_nonce();
				$this->handle_reassign_sites();
				$this->handle_update_network();
				break;

			// Delete network.
			case 'delete':
				$this->check_nonce();
				$this->handle_delete_network();
				break;

			// Delete multiple networks.
			case 'delete_multiple':
				$this->check_nonce();
				$this->handle_delete_networks();
				break;

			// Move site to different network.
			case 'move':
				$this->check_nonce();
				$this->handle_move_site();
				break;
		}
	}
public function route_save_handlers() {

		// Bail -- our fields aren't being edited
		// Otherwise we'll do an unnecessary nonce check
		if ( empty( $_POST['network_edit'] ) ) {
			return;
		}
		
		$action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING );
		if ( empty( $action ) ) {
			$alternative_actions = array( 'delete', 'delete_multiple', 'move' );
			foreach ( $alternative_actions as $alternative_action ) {
				if ( filter_input( INPUT_POST, $alternative_action ) ) {
					$action = $alternative_action;
					break;
				}
			}
		}

		switch ( $action ) {

			// Create network.
			case 'create':
				$this->check_nonce();
				$this->handle_add_network();
				break;

			// Update network.
			case 'update':
				$this->check_nonce();
				$this->handle_reassign_sites();
				$this->handle_update_network();
				break;

			// Delete network.
			case 'delete':
				$this->check_nonce();
				$this->handle_delete_network();
				break;

			// Delete multiple networks.
			case 'delete_multiple':
				$this->check_nonce();
				$this->handle_delete_networks();
				break;

			// Move site to different network.
			case 'move':
				$this->check_nonce();
				$this->handle_move_site();
				break;
		}
	}
public function route_save_handlers ( ) { // Bail -- our fields aren't being edited // Otherwise we'll do an unnecessary nonce check if ( empty ( $ _POST [ 'network_edit' ] ) ) { return ; } $ action = filter_input ( INPUT_POST , 'action' , FILTER_SANITIZE_STRING ) ; if ( empty ( $ action ) ) { $ alternative_actions = array ( 'delete' , 'delete_multiple' , 'move' ) ; foreach ( $ alternative_actions as $ alternative_action ) { if ( filter_input ( INPUT_POST , $ alternative_action ) ) { $ action = $ alternative_action ; break ; } } } switch ( $ action ) { // Create network. case 'create' : $ this -> check_nonce ( ) ; $ this -> handle_add_network ( ) ; break ; // Update network. case 'update' : $ this -> check_nonce ( ) ; $ this -> handle_reassign_sites ( ) ; $ this -> handle_update_network ( ) ; break ; // Delete network. case 'delete' : $ this -> check_nonce ( ) ; $ this -> handle_delete_network ( ) ; break ; // Delete multiple networks. case 'delete_multiple' : $ this -> check_nonce ( ) ; $ this -> handle_delete_networks ( ) ; break ; // Move site to different network. case 'move' : $ this -> check_nonce ( ) ; $ this -> handle_move_site ( ) ; break ; } }
Handles network management form submissions.

@since 2.0.0
Handles network management form submissions .