src/Transient_API.php
protected function validate_version( $value, $type = '' ) {
		if ( false === $value || empty( $value ) || is_null( $value ) ) {
			return false;
		}

		if ( 'option' === $type ) {
			return version_compare( $this->option_version, $value, '=' );
		}

		return version_compare( $this->transient_version, $value, '=' );
	}
protected function validate_version( $value, $type = '' ) {
		if ( false === $value || empty( $value ) || is_null( $value ) ) {
			return false;
		}

		if ( 'option' === $type ) {
			return version_compare( $this->option_version, $value, '=' );
		}

		return version_compare( $this->transient_version, $value, '=' );
	}
protected function validate_version ( $ value , $ type = '' ) { if ( false === $ value || empty ( $ value ) || is_null ( $ value ) ) { return false ; } if ( 'option' === $ type ) { return version_compare ( $ this -> option_version , $ value , '=' ) ; } return version_compare ( $ this -> transient_version , $ value , '=' ) ; }
Validates If Saved Version is same as in the class version.

@param        $value
@param string $type

@uses \VS_Transient_WP_Api::$option_version
@uses \VS_Transient_WP_Api::$transient_version

@return bool|mixed
Validates If Saved Version is same as in the class version .