jesusangel / wc-sermepa

Sermepa payment gateway plugin for WooCommerce
Other
28 stars 16 forks source link

removing unnecessary check that doesn´t work in multisite network #27

Closed asiermarques closed 7 years ago

asiermarques commented 7 years ago

The initial check "in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) )" does not work in a multisite installation.

It must be enough checking if WC_Payment_Gateway class exists in order to know if WooCommerce is active.

Best regards!

jesusangel commented 7 years ago

Hi Asier,

Thanks for the code. I applied your change directly to my code to preserve the tab spaces.

Kind regards,