From 0b3d21c10467f306bcaed9b401f8b6045a21dd86 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Wed, 26 Feb 2014 13:30:08 +0200 Subject: [PATCH] Should check for yes if guest checkout is enabled --- includes/wc-customer-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-customer-functions.php b/includes/wc-customer-functions.php index e60f982b6c3..074aab2e557 100644 --- a/includes/wc-customer-functions.php +++ b/includes/wc-customer-functions.php @@ -300,7 +300,7 @@ function wc_customer_has_capability( $allcaps, $caps, $args ) { } $order = new WC_Order( $order_id ); - if ( $user_id == $order->user_id || empty( $order->user_id ) || 'no' == get_option( 'woocommerce_enable_guest_checkout' ) ) { + if ( $user_id == $order->user_id || empty( $order->user_id ) || 'yes' == get_option( 'woocommerce_enable_guest_checkout' ) ) { $allcaps['pay_for_order'] = true; }