Plugin Directory

Changeset 2745804


Ignore:
Timestamp:
06/21/2022 10:59:16 AM (4 years ago)
Author:
tomlister
Message:

minor fix

Location:
payflex-payment-gateway
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • payflex-payment-gateway/tags/2.3.5/partpay.php

    r2728409 r2745804  
    1010 * Check if WooCommerce is activated
    1111 */
    12 if ( is_multisite() ) {
    13     $fun = wp_get_active_network_plugins();
    14 }else{
    15     $fun = wp_get_active_and_valid_plugins();
    16 }
     12
    1713$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . 'woocommerce/woocommerce.php';
    18 if (in_array( $plugin_path, $fun )) {
     14if (in_array($plugin_path,  wp_get_active_and_valid_plugins()) || in_array( $plugin_path,  wp_get_active_network_plugins())) {
    1915   
    2016    add_action('plugins_loaded', 'partpay_gateway', 0);
     
    919915                        }
    920916                    } else {
    921                         $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));
     917                        // $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));
    922918                    }
    923919
  • payflex-payment-gateway/trunk/partpay.php

    r2728409 r2745804  
    1010 * Check if WooCommerce is activated
    1111 */
    12 if ( is_multisite() ) {
    13     $fun = wp_get_active_network_plugins();
    14 }else{
    15     $fun = wp_get_active_and_valid_plugins();
    16 }
     12
    1713$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . 'woocommerce/woocommerce.php';
    18 if (in_array( $plugin_path, $fun )) {
     14if (in_array($plugin_path,  wp_get_active_and_valid_plugins()) || in_array( $plugin_path,  wp_get_active_network_plugins())) {
    1915   
    2016    add_action('plugins_loaded', 'partpay_gateway', 0);
     
    919915                        }
    920916                    } else {
    921                         $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));
     917                        // $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));
    922918                    }
    923919
Note: See TracChangeset for help on using the changeset viewer.