src/Checksum_Plugin_Command.php
private function get_plugin_version( $path ) {
		if ( ! isset( $this->plugins_data ) ) {
			$this->plugins_data = get_plugins();
		}

		if ( ! array_key_exists( $path, $this->plugins_data ) ) {
			return false;
		}

		return $this->plugins_data[ $path ]['Version'];
	}
private function get_plugin_version( $path ) {
		if ( ! isset( $this->plugins_data ) ) {
			$this->plugins_data = get_plugins();
		}

		if ( ! array_key_exists( $path, $this->plugins_data ) ) {
			return false;
		}

		return $this->plugins_data[ $path ]['Version'];
	}
private function get_plugin_version ( $ path ) { if ( ! isset ( $ this -> plugins_data ) ) { $ this -> plugins_data = get_plugins ( ) ; } if ( ! array_key_exists ( $ path , $ this -> plugins_data ) ) { return false ; } return $ this -> plugins_data [ $ path ] [ 'Version' ] ; }
Gets the currently installed version for a given plugin.

@param string $path Relative path to plugin file to get the version for.

@return string|false Installed version of the plugin, or false if not
found.
Gets the currently installed version for a given plugin .