Proposed Bugfix for Multi-site/Network Not Showing Settings in Admin Menu
-
It appears
in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))
in the primarywoocommerce-payment-gateway-per-category.php
file doesn’t catch an active WooCommerce plugin that has been network activated. As such, things like the menu items & other functionality don’t work properly as a result.Thankfully, there’s a quick & easy fix to change the exact code snippet above to
is_plugin_active('woocommerce/woocommerce.php')
which takes a normal setup into account as well as a Network activated setup.I found that this fixed the issue entirely, and I’ve love to see this implemented in a future update to this plugin as it appears to be a functionality-breaking bug for Multi-site currently when using an up-to-date setup.
Note: This is not a duplicate of the post I made for the Payment Gateway Per Product support forum (https://www.ads-software.com/support/topic/proposed-bugfix-for-multi-site-network-not-showing-settings-in-admin-menu/). It just happens that this plugin is also suffering from the same bug with a similar bug fix.
Thank you,
Kurt
- The topic ‘Proposed Bugfix for Multi-site/Network Not Showing Settings in Admin Menu’ is closed to new replies.