Merge pull request #6423 from mgiulio/wc-gateway-paypal

[2.2] Use 'no' to disable the gateway
This commit is contained in:
Mike Jolley 2014-10-02 10:11:16 +01:00
commit c9bb3cab87
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_response' ) );
if ( ! $this->is_valid_for_use() ) {
$this->enabled = false;
$this->enabled = 'no';
}
}