WP_CLI\Utils

wp_version_compare()WP-CLI 1.0

No Hooks.

Return

null. Nothing.

Usage

wp_version_compare( $since, $operator );
$since (required)
-
$operator (required)
-

Код wp_version_compare() WP-CLI 2.7.0-alpha

function wp_version_compare( $since, $operator ) {
	$wp_version = str_replace( '-src', '', $GLOBALS['wp_version'] );
	$since      = str_replace( '-src', '', $since );
	return version_compare( $wp_version, $since, $operator );
}