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;