From eb7943238820a19a682acb1f76eee76daca5fbd1 Mon Sep 17 00:00:00 2001 From: hellofromtonya Date: Mon, 5 Feb 2024 17:49:29 -0600 Subject: [PATCH] Adds to network plugins loader --- src/wp-settings.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wp-settings.php b/src/wp-settings.php index 992c14026f88e..7c8413609eb5e 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -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;