Merge pull request #15337 from aelia-co/fix-issue-15336

Fix for #15336
This commit is contained in:
Mike Jolley 2017-05-30 10:38:31 +01:00 committed by GitHub
commit ef52345f1b
1 changed files with 1 additions and 1 deletions

View File

@ -686,7 +686,7 @@ function wc_get_tax_class_by_tax_id( $tax_id ) {
*/
function wc_get_payment_gateway_by_order( $order ) {
if ( WC()->payment_gateways() ) {
$payment_gateways = WC()->payment_gateways->payment_gateways();
$payment_gateways = WC()->payment_gateways()->payment_gateways();
} else {
$payment_gateways = array();
}