• Resolved inovagora

    (@inovagora)


    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)
  • Plugin Support emermatomo

    (@emermatomo)

    Hello @inovagora. We created a PR for it, it should be in the next release in two weeks.

    Plugin Support emermatomo

    (@emermatomo)

    Hi?@inovagora. Since this is already a work in progress. We’ll go ahead and close this topic. If there is anything else we can assist you with, please don’t hesitate to let us know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect require of ms_blogs.php’ is closed to new replies.