Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
slight tweak to version_compare()
Browse files Browse the repository at this point in the history
  • Loading branch information
helgatheviking committed Apr 28, 2022
1 parent c8055fb commit bdfeb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wc-mnm-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function init() {
add_action( 'init', array( __CLASS__, 'load_plugin_textdomain' ) );

// Check dependencies.
if ( ! function_exists( 'WC_Mix_and_Match' ) || version_compare( WC_Mix_and_Match()->version, self::REQ_MNM_VERSION ) < 0 ) {
if ( ! function_exists( 'WC_Mix_and_Match' ) || version_compare( WC_Mix_and_Match()->version, self::REQ_MNM_VERSION, '<' ) ) {
add_action( 'admin_notices', array( __CLASS__, 'version_notice' ) );
return false;
}
Expand Down

0 comments on commit bdfeb88

Please sign in to comment.