Skip to content

Commit

Permalink
chore: Update plugin.php to update minimum PHP version to 7.3.0 (#2821)
Browse files Browse the repository at this point in the history
* Update plugin.php

* Update plugin.php
  • Loading branch information
DAnn2012 committed Jul 12, 2024
1 parent 1d0c6ce commit 6eac016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
* @since 1.9
*/
function stackable_php_requirement_activation_check() {
if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
if ( version_compare( PHP_VERSION, '7.3.0', '<' ) ) {
deactivate_plugins( basename( __FILE__ ) );
wp_die(
sprintf(
__( '%s"Stackable" can not be activated. %s It requires PHP version 5.3.0 or higher, but PHP version %s is used on the site. Please upgrade your PHP version first ✌️ %s Back %s', STACKABLE_I18N ),
__( '%s"Stackable" can not be activated. %s It requires PHP version 7.3.0 or higher, but PHP version %s is used on the site. Please upgrade your PHP version first ✌️ %s Back %s', STACKABLE_I18N ),
'<strong>',
'</strong><br><br>',
PHP_VERSION,
Expand All @@ -65,12 +65,12 @@ function stackable_php_requirement_activation_check() {
*
* @since 1.9
*/
if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
if ( version_compare( PHP_VERSION, '7.3.0', '<' ) ) {
if ( ! function_exists( 'stackable_php_requirement_notice' ) ) {
function stackable_php_requirement_notice() {
printf(
'<div class="notice notice-error"><p>%s</p></div>',
sprintf( __( '"Stackable" requires PHP version 5.3.0 or higher, but PHP version %s is used on the site.', STACKABLE_I18N ), PHP_VERSION )
sprintf( __( '"Stackable" requires PHP version 7.3.0 or higher, but PHP version %s is used on the site.', STACKABLE_I18N ), PHP_VERSION )
);
}
}
Expand Down

0 comments on commit 6eac016

Please sign in to comment.