Skip to content

Commit

Permalink
Adds to network plugins loader
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Feb 5, 2024
1 parent a6d4aab commit eb79432
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wp-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,16 @@
// Load network activated plugins.
if ( is_multisite() ) {
foreach ( wp_get_active_network_plugins() as $network_plugin ) {
/*
* If the plugin is incompatible with this WordPress version,
* skip loading the plugin.
*
* @since 6.5.0
*/
if ( ! $_is_plugin_compatible_with_wp( $network_plugin ) ) {
continue;
}

wp_register_plugin_realpath( $network_plugin );

$_wp_plugin_file = $network_plugin;
Expand Down

0 comments on commit eb79432

Please sign in to comment.