1 parent 4c56930 commit 08d820dCopy full SHA for 08d820d
1 file changed
rt-plugin-report.php
@@ -703,14 +703,13 @@ private function get_multisite_activation( $path ) {
703
// Get a list of all sites in the multisite install.
704
$args = array(
705
'number' => 9999,
706
- 'fields' => 'ids',
707
);
708
$sites = get_sites( $args );
709
// Add the total number of sites to the return array.
710
$activation_status['sites'] = count( $sites );
711
// Loop through the sites to find where the plugin is active.
712
- foreach ( $sites as $site_id ) {
713
- $plugins = get_blog_option( (int) $site_id, 'active_plugins', null );
+ foreach ( $sites as $site ) {
+ $plugins = get_blog_option( (int) $site->blog_id, 'active_plugins', null );
714
if ( $plugins ) {
715
foreach ( $plugins as $plugin_path ) {
716
if ( $plugin_path === $path ) {
0 commit comments