&& ( !
$network_plugins || !
in_array( WP_PLUGIN_DIR . '/' .
$plugin,
$network_plugins, true
) ) ) { $plugins[] = WP_PLUGIN_DIR . '/' .
$plugin;
} } /*
* Remove plugins from the list of active plugins when we're on an endpoint
* that should be protected against WSODs and the plugin is paused.
*/
if ( wp_is_recovery_mode() ) { $plugins =
wp_skip_paused_plugins( $plugins );
} return $plugins;
}/**
* Filters a given list of plugins, removing any paused plugins from it.
*
* @since 5.2.0
*
* @param string[] $plugins Array of absolute plugin main file paths.
* @return string[] Filtered array of plugins, without any paused plugins.
*/