Incorrect require of ms_blogs.php
-
Hi,
In the file classes/WpMatomo/Commands/MatomoCommands.php there is a require line 12 :
require_once ABSPATH . ‘/wp-includes/ms-blogs.php’;
This core file should be required only if WordPress is a multisite, this is what is intended by the WordPress core.
Requiring this file directly in single-site context causes bugs with other plugins, since multisite fonctions should not be defined in single-site context.
Can you please enclose this require in a “is_multisite()” check ?
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Incorrect require of ms_blogs.php’ is closed to new replies.