diff --git a/src/Basic_Requirement_Checker.php b/src/Basic_Requirement_Checker.php index dde2c8ae8950ec7959c41b096130a76e1fb38d9f..e5baf8148f0417e81f16ec2cfe4b5e92c09aa017 100644 --- a/src/Basic_Requirement_Checker.php +++ b/src/Basic_Requirement_Checker.php @@ -293,9 +293,9 @@ $required_plugins = $this->retrieve_required_plugins_data(); if ( count( $required_plugins ) > 0 ) { foreach ( $required_plugins as $plugin ) { - if ( $plugin[ ucfirst( self::PLUGIN_INFO_VERSION ) ] < $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ] ) { + if ( $plugin[ 'Version' ] < $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ] ) { $notices[] = $this->prepare_notice_message( sprintf( __( 'The “%s” plugin requires at least %s version of %s to work correctly. Please update it', $this->get_text_domain() ), - esc_html( $this->plugin_name ), $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], $plugin[ ucfirst( self::PLUGIN_INFO_KEY_NAME ) ] ) ); + esc_html( $this->plugin_name ), $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], $plugin[ 'Version' ] ) ); } } }