Skip to content

Commit 36ec057

Browse files
authored
Use get_sites() if possible.
1 parent 135e3fd commit 36ec057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uninstall.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
if ( is_multisite() ) {
14-
$ms_sites = wp_get_sites();
14+
$ms_sites = function_exists( 'get_sites' ) ? get_sites() : wp_get_sites();
1515

1616
if( 0 < sizeof( $ms_sites ) ) {
1717
foreach ( $ms_sites as $ms_site ) {
@@ -43,4 +43,4 @@
4343
*/
4444
function plugin_uninstalled() {
4545
global $wpdb;
46-
}
46+
}

0 commit comments

Comments
 (0)