Brainstorm_Update_Astra_Addon::version_check()
Update brainstorm product version and product path.
Description
Return
(void)
Source
File: class-brainstorm-update-astra-addon.php
public static function version_check() { $bsf_core_version_file = realpath( ASTRA_EXT_DIR . '/admin/bsf-core/version.yml' ); // Is file 'version.yml' exist? if ( is_file( $bsf_core_version_file ) ) { global $bsf_core_version, $bsf_core_path; $bsf_core_dir = realpath( dirname( __FILE__ ) . '/admin/bsf-core/' ); $version = file_get_contents( $bsf_core_version_file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents // Compare versions. if ( version_compare( $version, $bsf_core_version, '>' ) ) { $bsf_core_version = $version; $bsf_core_path = $bsf_core_dir; } } }
Expand full source code Collapse full source code View on Trac