Skip to content
Snippets Groups Projects
Commit 72936574 authored by vasili.guruli's avatar vasili.guruli
Browse files

Fixed version compare

parent 6bd76378
No related branches found
No related tags found
1 merge request!19Feature/minimum plugin version check demo1
Pipeline #9987 passed with warnings
......@@ -293,7 +293,7 @@
$required_plugins = $this->retrieve_required_plugins_data();
if ( count( $required_plugins ) > 0 ) {
foreach ( $required_plugins as $plugin ) {
if ( $plugin[ 'Version' ] < $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ] ) {
if ( version_compare ( $plugin[ 'Version' ], $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ] , '<' ) ) {
$notices[] = $this->prepare_notice_message( sprintf( __( 'The &#8220;%s&#8221; 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[ 'Version' ] ) );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment