• Resolved mardala

    (@mardala)


    Trying to see the logic in the installer where it loops over the entire list of blogs.

    Instead of looping over the blog ids just install for the current blog, e.g. (this is the older V1 plugin, but the same logic is in the new one)

    $blog_id = get_current_blog_id();
    switch_to_blog($blog_id);
    if(file_exists(MAIL_BK_PLUGIN_DIR. “/lib/wp-install-script.php”))
    {
    include MAIL_BK_PLUGIN_DIR. “/lib/wp-install-script.php”;
    }

    Otherwise if you have thousands of sites in a multisite it times out because you are looping and trying to run the installer on every single site.

    If the intention was to make it globally installed on multisite, then you should refactor and consider having the SMTP settings the same for every site in the multisite admin.

Viewing 1 replies (of 1 total)
  • Plugin Contributor wordpress-empire

    (@wordpress-empire)

    Hi,

    Thank you for reporting the issue.

    The code was placed here because if someone network activates the plugin, and then we need to install the tables on each site otherwise it won’t work.

    Thanks

    Support Team
    Tech Banker

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion for Multisite’ is closed to new replies.