Skip to content

Commit

Permalink
remove deprecated wp_get_sites() call from uninstall routine
Browse files Browse the repository at this point in the history
We only support WP 4.7 and later since 1.5. Remove the 4.6 call.
  • Loading branch information
stklcode committed Mar 16, 2024
1 parent 6f4b172 commit 6003a0d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions inc/class-statifyblacklist-system.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ public static function uninstall() {

if ( function_exists( 'get_sites' ) ) {
$sites = get_sites();
} elseif ( function_exists( 'wp_get_sites' ) ) {
// phpcs:ignore WordPress.WP.DeprecatedFunctions.wp_get_sitesFound -- Legacy support for WP < 4.6.
$sites = wp_get_sites();
} else {
return;
}
Expand Down

0 comments on commit 6003a0d

Please sign in to comment.