src/Modules/Rollback.php
public function get_rollback() {
		$rollback = array();
		$versions = $this->get_api_versions();
		$versions = apply_filters( $this->product->get_key() . '_rollbacks', $versions );
		if ( empty( $versions ) ) {
			return $rollback;
		}
		if ( $versions ) {
			usort( $versions, array( $this, 'sort_rollback_array' ) );
			foreach ( $versions as $version ) {
				if ( isset( $version['version'] ) && isset( $version['url'] ) && version_compare( $this->product->get_version(), $version['version'], '>' ) ) {
					$rollback = $version;
					break;
				}
			}
		}

		return $rollback;
	}
public function get_rollback() {
		$rollback = array();
		$versions = $this->get_api_versions();
		$versions = apply_filters( $this->product->get_key() . '_rollbacks', $versions );
		if ( empty( $versions ) ) {
			return $rollback;
		}
		if ( $versions ) {
			usort( $versions, array( $this, 'sort_rollback_array' ) );
			foreach ( $versions as $version ) {
				if ( isset( $version['version'] ) && isset( $version['url'] ) && version_compare( $this->product->get_version(), $version['version'], '>' ) ) {
					$rollback = $version;
					break;
				}
			}
		}

		return $rollback;
	}
public function get_rollback ( ) { $ rollback = array ( ) ; $ versions = $ this -> get_api_versions ( ) ; $ versions = apply_filters ( $ this -> product -> get_key ( ) . '_rollbacks' , $ versions ) ; if ( empty ( $ versions ) ) { return $ rollback ; } if ( $ versions ) { usort ( $ versions , array ( $ this , 'sort_rollback_array' ) ) ; foreach ( $ versions as $ version ) { if ( isset ( $ version [ 'version' ] ) && isset ( $ version [ 'url' ] ) && version_compare ( $ this -> product -> get_version ( ) , $ version [ 'version' ] , '>' ) ) { $ rollback = $ version ; break ; } } } return $ rollback ; }
Get the last rollback for this product.

@return array The rollback version.
Get the last rollback for this product .