diff --git a/CHANGELOG.md b/CHANGELOG.md index c568dcfa3a3e9b04efff0f3f93121e5707c7094e..82415f6c52047b5f1aab1f60bb644a26ea0f2c62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.6.3] - 2024-04-16 +### Fixed +- Prevent error notice + ## [3.6.2] - 2023-06-29 ### Fixed - Exact comparison for X.Y.Z semver version doesn't result in notices when the required version is met. Previously, requiring plugin in 1.1.1 version and activating dependend plugin in such version would result in admin notice and disabling the plugin, actually letting to use the plugin only from 1.1.2 version. diff --git a/src/Basic_Requirement_Checker.php b/src/Basic_Requirement_Checker.php index dcac407b2c79ef9f27e70445125f048850d77755..43a89819d66385a720cb75b73454fda06b7cae9a 100644 --- a/src/Basic_Requirement_Checker.php +++ b/src/Basic_Requirement_Checker.php @@ -333,7 +333,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) { $required_plugins = $this->retrieve_required_plugins_data(); if ( count( $required_plugins ) > 0 ) { foreach ( $required_plugins as $plugin ) { - if ( version_compare( $plugin['Version'], $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], '<=' ) ) { + if ( isset( $plugin['Version'] ) && version_compare( $plugin['Version'], $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], '<=' ) ) { $notices[] = $this->prepare_notice_message( sprintf( __( 'The “%1$s” plugin requires at least %2$s version of %3$s to work correctly. Please update it to its latest release.', $this->get_text_domain() ),