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.


Top ↑

Return Return

(bool) Returns true if the selected package version should be updated, else false.


Top ↑

Source Source

File: vendor/automattic/jetpack-autoloader/src/class-version-selector.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.