Skip to content

Commit 08d820d

Browse files
committed
Next try in fixing the PHPStan error
1 parent 4c56930 commit 08d820d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rt-plugin-report.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,14 +703,13 @@ private function get_multisite_activation( $path ) {
703703
// Get a list of all sites in the multisite install.
704704
$args = array(
705705
'number' => 9999,
706-
'fields' => 'ids',
707706
);
708707
$sites = get_sites( $args );
709708
// Add the total number of sites to the return array.
710709
$activation_status['sites'] = count( $sites );
711710
// 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 );
711+
foreach ( $sites as $site ) {
712+
$plugins = get_blog_option( (int) $site->blog_id, 'active_plugins', null );
714713
if ( $plugins ) {
715714
foreach ( $plugins as $plugin_path ) {
716715
if ( $plugin_path === $path ) {

0 commit comments

Comments
 (0)