if ( !
is_null( $auto_update_forced ) ) { $plugin_data['auto-update-forced'
] =
$auto_update_forced;
} $plugins['all'
][ $plugin_file ] =
$plugin_data;
// Make sure that $plugins['upgrade'] also receives the extra info since it is used on ?plugin_status=upgrade.
if ( isset( $plugins['upgrade'
][ $plugin_file ] ) ) { $plugins['upgrade'
][ $plugin_file ] =
$plugin_data;
} // Filter into individual sections.
if ( is_multisite() && !
$screen->
in_admin( 'network'
) &&
is_network_only_plugin( $plugin_file ) && !
is_plugin_active( $plugin_file ) ) { if ( $show_network_active ) { // On the non-network screen, show inactive network-only plugins if allowed.
$plugins['inactive'
][ $plugin_file ] =
$plugin_data;
} else { // On the non-network screen, filter out network-only plugins as long as they're not individually active.
unset( $plugins['all'
][ $plugin_file ] );
} } elseif ( !
$screen->
in_admin( 'network'
) &&
is_plugin_active_for_network( $plugin_file ) ) { if ( $show_network_active ) { // On the non-network screen, show network-active plugins if allowed.
$plugins['active'
][ $plugin_file ] =
$plugin_data;
}