Skip to content

Commit 5df5110

Browse files
committed
Fix plugins_loaded minimum requirements checks
1 parent 5ae9214 commit 5df5110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

analogwp-templates.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ function analog_fail_load() {
193193
add_action(
194194
'plugins_loaded',
195195
static function() {
196-
if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) {
196+
if ( version_compare( PHP_VERSION, ANG_PHP_MINIMUM, '<' ) ) {
197197
wp_die(
198198
/* translators: %s: version number */
199-
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), '5.6.0' ) ),
199+
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), ANG_PHP_MINIMUM ) ),
200200
esc_html__( 'Error Activating', 'ang' )
201201
);
202202
}
@@ -220,7 +220,7 @@ static function() {
220220
return;
221221
}
222222

223-
if ( ! version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
223+
if ( ! version_compare( get_bloginfo( 'version' ), ANG_WP_MINIMUM, '>=' ) ) {
224224
add_action( 'admin_notices', 'analog_fail_wp_version' );
225225
return;
226226
}

0 commit comments

Comments
 (0)