From 8c327cc58c1315c8f54ed4c881ec2298f799ab2a Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Wed, 10 Sep 2025 16:52:51 +0200 Subject: [PATCH] update minimum supported WordPress version to 5.1 (#43) Statify will move to 5.1, so there is no reason to stick with WP 4.7 with the upcoming release. --- README.md | 4 ++-- phpcs.xml | 2 +- statify-blacklist.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 37373ff..dbac88e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # Statify Filter # * Contributors: stklcode -* Requires at least: 4.7 +* Requires at least: 5.1 * Tested up to: 6.8 * Requires PHP: 7.2 * Stable tag: 1.7.2 @@ -56,7 +56,7 @@ The plugin is capable of handling multisite installations. ### Requirements ### * PHP 7.2 or above -* WordPress 4.7 or above +* WordPress 5.1 or above * _Statify_ plugin installed and activated (1.5 or above) ## Frequently Asked Questions ## diff --git a/phpcs.xml b/phpcs.xml index 41070f1..6f0a31f 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -10,7 +10,7 @@ inc - + diff --git a/statify-blacklist.php b/statify-blacklist.php index d6fde20..5d7505b 100644 --- a/statify-blacklist.php +++ b/statify-blacklist.php @@ -11,7 +11,7 @@ * Plugin URI: https://wordpress.org/plugins/statify-blacklist/ * Description: Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist") * Version: 1.7.2 - * Requires at least: 4.7 + * Requires at least: 5.1 * Requires PHP: 7.2 * Requires Plugins: statify * Author: Stefan Kalscheuer (@stklcode) @@ -94,7 +94,7 @@ function statify_blacklist_autoload( string $class_name ): void { * @return boolean Whether minimum WP and PHP versions are met. */ function statify_blacklist_compatibility_check(): bool { - return version_compare( $GLOBALS['wp_version'], '4.7', '>=' ) && + return version_compare( $GLOBALS['wp_version'], '5.1', '>=' ) && version_compare( phpversion(), '7.2', '>=' ); } @@ -129,7 +129,7 @@ function statify_blacklist_disabled_notice(): void { printf( /* translators: minimum version numbers for WordPress and PHP inserted at placeholders */ esc_html__( 'Statify Filter requires at least WordPress %1$s and PHP %2$s.', 'statify-blacklist' ), - '4.7', + '5.1', '7.2' ); echo '
';