Version_Selector::is_version_update_required( String $selected_version, String $compare_version )
Checks whether the selected package version should be updated. Composer development package versions (‘9999999-dev’ or versions that start with ‘dev-‘) are favored when the JETPACK_AUTOLOAD_DEV constant is set to true.
Description Description
Parameters Parameters
- $selected_version
-
(Required) The currently selected package version.
- $compare_version
-
(Required) The package version that is being evaluated to determine if the version needs to be updated.
Return Return
(bool) Returns true if the selected package version should be updated, else false.
Source Source
File: vendor/automattic/jetpack-autoloader/src/class-version-selector.php