From 29305bd9ec908ee24b763cd320c5313bec76e90c Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Wed, 11 Jun 2014 15:31:54 -0300 Subject: [PATCH] fixed some coding standards in includes/admin/meta-boxes/views/html-order-item.php --- .../meta-boxes/views/html-order-item.php | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/includes/admin/meta-boxes/views/html-order-item.php b/includes/admin/meta-boxes/views/html-order-item.php index f937e474a59..f6ea2ec06d8 100644 --- a/includes/admin/meta-boxes/views/html-order-item.php +++ b/includes/admin/meta-boxes/views/html-order-item.php @@ -1,7 +1,10 @@ - + + @@ -9,14 +12,17 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly echo '' . __( 'Product ID:', 'woocommerce' ) . ' ' . absint( $item['product_id'] ); - if ( $item['variation_id'] ) + if ( $item['variation_id'] ) { echo '
' . __( 'Variation ID:', 'woocommerce' ) . ' ' . absint( $item['variation_id'] ); + } - if ( $_product && $_product->get_sku() ) + if ( $_product && $_product->get_sku() ) { echo '
' . __( 'Product SKU:', 'woocommerce' ).' ' . esc_html( $_product->get_sku() ); + } - if ( $_product && isset( $_product->variation_data ) ) + if ( $_product && isset( $_product->variation_data ) ) { echo '
' . wc_get_formatted_variation( $_product->variation_data, true ); + } ?>">get_image( 'shop_thumbnail', array( 'title' => '' ) ); ?> @@ -25,10 +31,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - get_sku() ) echo esc_html( $_product->get_sku() ) . ' – '; ?> + get_sku() ) ? esc_html( $_product->get_sku() ) . ' – ' : ''; ?> - + @@ -140,7 +146,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - - +
- +