Skip to content

Commit

Permalink
Merge pull request #202 from radeno/patch-1
Browse files Browse the repository at this point in the history
Align PHP minimum version checks
  • Loading branch information
jeffpaul authored Jan 2, 2024
2 parents e0aaeff + a56e3c2 commit 7e83188
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions windows-azure-storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ function windows_azure_storage_load_textdomain() {
*/
function windows_azure_plugin_check_prerequisite() {
global $wp_version;
$php_version = phpversion();
$php_compat = version_compare( $php_version, '8.0.0', '>=' );
if ( ! $php_compat ) {
if ( ! was_site_meets_php_requirements() ) {
deactivate_plugins( plugin_basename( __FILE__ ) );
wp_die( __( 'Microsoft Azure Storage for WordPress requires at least PHP 8.0.0', 'windows-azure-storage' ) );
wp_die( __( 'Microsoft Azure Storage for WordPress requires at least PHP ' . was_minimum_php_requirement(), 'windows-azure-storage' ) );
}
$wp_compat = version_compare( $wp_version, '5.7', '>=' );
if ( ! $wp_compat ) {
Expand Down

0 comments on commit 7e83188

Please sign in to comment.