Skip to content

Commit

Permalink
Bump required PHP version to 7.1 (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrvigg committed Apr 7, 2023
1 parent 69edb6e commit 7f4b1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"require": {
"composer/installers": ">=1.0",
"php": ">=7.0",
"php": ">=7.1",
"ext-intl": "*"
},
"extra": {
Expand Down
4 changes: 2 additions & 2 deletions src/admin/activation_hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@ function qtranxf_clear_debug_log() {

function qtranxf_activation_hook() {
qtranxf_clear_debug_log();
if ( version_compare( PHP_VERSION, '7.0' ) < 0 ) {
if ( version_compare( PHP_VERSION, '7.1' ) < 0 ) {
// Deactivate ourself
load_plugin_textdomain( 'qtranslate', false, basename( QTRANSLATE_DIR ) . '/lang' );
$msg = sprintf( __( 'Plugin %s requires PHP version %s at least. This server instance runs PHP version %s. A PHP version %s or higher is recommended. The plugin has not been activated.', 'qtranslate' ), qtranxf_get_plugin_link(), '7.0', PHP_VERSION, '8.3' );
$msg = sprintf( __( 'Plugin %s requires PHP version %s at least. This server instance runs PHP version %s. A PHP version %s or higher is recommended. The plugin has not been activated.', 'qtranslate' ), qtranxf_get_plugin_link(), '7.1', PHP_VERSION, '8.3' );
deactivate_plugins( plugin_basename( QTRANSLATE_FILE ) );
wp_die( $msg );
}
Expand Down

0 comments on commit 7f4b1ab

Please sign in to comment.