private function get_states( $network ) {
		$network_states = array();
		$network_state  = '';

		if ( is_main_network( $network->id ) ) {
			$network_states['primary'] = esc_html__( 'Primary', 'wp-multi-network' );
		}

		/**
		 * Filters the default network display states used in the network list table.
		 *
		 * @since 2.2.0
		 *
		 * @param array      $network_states An array of network display states.
		 * @param WP_Network $network        The current network object.
		 */
		$network_states = apply_filters( 'display_network_states', $network_states, $network );

		// Setup states markup.
		if ( ! empty( $network_states ) ) {
			$state_count   = count( $network_states );
			$i             = 0;
			$network_state = ' &mdash; ';

			foreach ( $network_states as $state ) {
				++$i;

				$sep            = $i === $state_count ? '' : ', ';
				$network_state .= "<span class='network-state'>{$state}{$sep}</span>";
			}
		}

		return $network_state;
	}
private function get_states( $network ) {
		$network_states = array();
		$network_state  = '';

		if ( is_main_network( $network->id ) ) {
			$network_states['primary'] = esc_html__( 'Primary', 'wp-multi-network' );
		}

		/**
		 * Filters the default network display states used in the network list table.
		 *
		 * @since 2.2.0
		 *
		 * @param array      $network_states An array of network display states.
		 * @param WP_Network $network        The current network object.
		 */
		$network_states = apply_filters( 'display_network_states', $network_states, $network );

		// Setup states markup.
		if ( ! empty( $network_states ) ) {
			$state_count   = count( $network_states );
			$i             = 0;
			$network_state = ' &mdash; ';

			foreach ( $network_states as $state ) {
				++$i;

				$sep            = $i === $state_count ? '' : ', ';
				$network_state .= "<span class='network-state'>{$state}{$sep}</span>";
			}
		}

		return $network_state;
	}
private function get_states ( $ network ) { $ network_states = array ( ) ; $ network_state = '' ; if ( is_main_network ( $ network -> id ) ) { $ network_states [ 'primary' ] = esc_html__ ( 'Primary' , 'wp-multi-network' ) ; } /**
		 * Filters the default network display states used in the network list table.
		 *
		 * @since 2.2.0
		 *
		 * @param array      $network_states An array of network display states.
		 * @param WP_Network $network        The current network object.
		 */ $ network_states = apply_filters ( 'display_network_states' , $ network_states , $ network ) ; // Setup states markup. if ( ! empty ( $ network_states ) ) { $ state_count = count ( $ network_states ) ; $ i = 0 ; $ network_state = ' &mdash; ' ; foreach ( $ network_states as $ state ) { ++ $ i ; $ sep = $ i === $ state_count ? '' : ', ' ; $ network_state .= "<span class='network-state'>{$state}{$sep}</span>" ; } } return $ network_state ; }
Gets the network states for a given network.

@since 2.2.0

@param WP_Network $network Network to get states for.
@return string HTML output containing states for the network.
Gets the network states for a given network .