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

Removed ucfirst function

parent 45b639a3
Branches
Tags
1 merge request!19Feature/minimum plugin version check demo1
Pipeline #9939 passed with warnings
...@@ -293,9 +293,9 @@ ...@@ -293,9 +293,9 @@
$required_plugins = $this->retrieve_required_plugins_data(); $required_plugins = $this->retrieve_required_plugins_data();
if ( count( $required_plugins ) > 0 ) { if ( count( $required_plugins ) > 0 ) {
foreach ( $required_plugins as $plugin ) { 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 &#8220;%s&#8221; plugin requires at least %s version of %s to work correctly. Please update it', $this->get_text_domain() ), $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[ ucfirst( self::PLUGIN_INFO_KEY_NAME ) ] ) ); 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