I was able to fix the problem by inverting the if condition priority on line 303 in “network-plugin-auditor.php” Essentially, the original code was only showing results from the first 100 sites. In my case was a significant problem. By making the following change it resolved the problem:
Original Code Line 303 in network-plugin-auditor.php:
if ( function_exists( 'get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// If wp_is_large_network() returns TRUE, get_sites() will return an empty array.
// By default wp_is_large_network() returns TRUE if there are 10,000 or more sites in your network.
// This can be filtered using the wp_is_large_network filter.
if ( ! wp_is_large_network() ) {
$blog_list = get_sites();
}
}
else if ( function_exists( 'wp_get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// If wp_is_large_network() returns TRUE, wp_get_sites() will return an empty array.
// By default wp_is_large_network() returns TRUE if there are 10,000 or more sites or users in your network.
// This can be filtered using the wp_is_large_network filter.
if ( ! wp_is_large_network( 'sites' ) ) {
$blog_list = wp_get_sites( $args );
}
}
New Code:
if ( function_exists( 'wp_get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// If wp_is_large_network() returns TRUE, wp_get_sites() will return an empty array.
// By default wp_is_large_network() returns TRUE if there are 10,000 or more sites or users in your network.
// This can be filtered using the wp_is_large_network filter.
if ( ! wp_is_large_network( 'sites' ) ) {
$blog_list = wp_get_sites( $args );
}
}
else if ( function_exists( 'get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// If wp_is_large_network() returns TRUE, get_sites() will return an empty array.
// By default wp_is_large_network() returns TRUE if there are 10,000 or more sites in your network.
// This can be filtered using the wp_is_large_network filter.
if ( ! wp_is_large_network() ) {
$blog_list = get_sites();
}
}