From e8e384d418fd9f7163ba89a15c7711bb4210188a Mon Sep 17 00:00:00 2001 From: "vasili.guruli" <vasili.guruli@inspirelabs.pl> Date: Wed, 13 Nov 2019 16:25:56 +0100 Subject: [PATCH] Removed ucfirst function --- src/Basic_Requirement_Checker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Basic_Requirement_Checker.php b/src/Basic_Requirement_Checker.php index dde2c8a..e5baf81 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' ] ) ); } } } -- GitLab