From 186f223d929590fcbb3ef262dae6c10eb319a6ba Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 23 Jan 2015 11:17:27 +0000 Subject: [PATCH] Fix indents in #7174 --- includes/class-wc-product-variable.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/class-wc-product-variable.php b/includes/class-wc-product-variable.php index b519b6add25..92e12eb7f36 100644 --- a/includes/class-wc-product-variable.php +++ b/includes/class-wc-product-variable.php @@ -224,9 +224,8 @@ class WC_Product_Variable extends WC_Product { if ( ! $variation_id ) { $price = false; - } - else { - $price = get_post_meta( $variation_id, '_regular_price', true ); + } else { + $price = get_post_meta( $variation_id, '_regular_price', true ); if ( $display && ( $variation = $this->get_child( $variation_id ) ) ) { $tax_display_mode = get_option( 'woocommerce_tax_display_shop' ); @@ -248,9 +247,8 @@ class WC_Product_Variable extends WC_Product { if ( ! $variation_id ) { $price = false; - } - else { - $price = get_post_meta( $variation_id, '_sale_price', true ); + } else { + $price = get_post_meta( $variation_id, '_sale_price', true ); if ( $display ) { $variation = $this->get_child( $variation_id );