From 8c556ca5093acc0750ed685380ebebc26b1b428b Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Wed, 21 Mar 2018 18:16:25 +0100 Subject: [PATCH] Removed legacy code for WP prior to 4.6 Statify itself requires WP 4.7, so no reason to stick to legacy code anymore. --- README.md | 7 +++++-- composer.json | 2 +- inc/class-statifyblacklist-system.php | 3 --- phpcs.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bceb1bb..f069d7d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Statify Blacklist # * Contributors: Stefan Kalscheuer -* Requires at least: 4.4 +* Requires at least: 4.7 * Tested up to: 4.9 * Requires PHP: 5.5 * Stable tag: 1.4.3 @@ -46,7 +46,7 @@ The plugin is capable of handling multisite installations. ### Requirements ### * PHP 5.5 or above -* WordPress 4.4 or above +* WordPress 4.7 or above * Statify plugin installed and activated (1.5.0 or above) ## Frequently Asked Questions ## @@ -82,6 +82,9 @@ Because of this, an IP blacklist can only be applied while processing the reques ## Changelog ## +### 1.5.0 / unreleased ### +* Minimum required WordPress version is 4.7 + ### 1.4.3 / 09.01.2018 ### * Fix issues with multisite installation (#11) diff --git a/composer.json b/composer.json index be3a5d0..dc35535 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "stklcode/statify-blacklist", - "version": "1.4.3", + "version": "1.5.0-alpha", "description": "A blacklist extension for the famous Statify WordPress plugin", "keywords": [ "wordpress", diff --git a/inc/class-statifyblacklist-system.php b/inc/class-statifyblacklist-system.php index a9160b1..66b822f 100644 --- a/inc/class-statifyblacklist-system.php +++ b/inc/class-statifyblacklist-system.php @@ -31,9 +31,6 @@ class StatifyBlacklist_System extends StatifyBlacklist { if ( $network_wide && is_multisite() ) { if ( function_exists( 'get_sites' ) ) { $sites = get_sites(); - } elseif ( function_exists( 'wp_get_sites' ) ) { - // @codingStandardsIgnoreLine Legacy support for WP < 4.6. - $sites = wp_get_sites(); } else { return; } diff --git a/phpcs.xml b/phpcs.xml index a40b6c5..ff901cc 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -10,7 +10,7 @@ statify-blacklist.php - +