From 9e93d990568f45ce6624c2173240dcb3cd4ebbd2 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 5 Dec 2017 16:57:26 -0200 Subject: [PATCH 1/2] Fixed "PHP Warning: printf(): Too few arguments" --- .../admin/meta-boxes/views/html-product-data-variations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/views/html-product-data-variations.php b/includes/admin/meta-boxes/views/html-product-data-variations.php index 2f055a8a177..454c13ce97b 100644 --- a/includes/admin/meta-boxes/views/html-product-data-variations.php +++ b/includes/admin/meta-boxes/views/html-product-data-variations.php @@ -84,7 +84,7 @@ if ( ! defined( 'ABSPATH' ) ) {
- + ( / ) From 79e682168563d6d3bd820c25445a473428819fe8 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 5 Dec 2017 17:11:33 -0200 Subject: [PATCH 2/2] Fixed coding standards --- .../views/html-product-data-variations.php | 72 ++++++++++--------- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/includes/admin/meta-boxes/views/html-product-data-variations.php b/includes/admin/meta-boxes/views/html-product-data-variations.php index 454c13ce97b..08d669f3edb 100644 --- a/includes/admin/meta-boxes/views/html-product-data-variations.php +++ b/includes/admin/meta-boxes/views/html-product-data-variations.php @@ -1,4 +1,10 @@ : get_name() ) ] ) ? $default_attributes[ sanitize_title( $attribute->get_name() ) ] : ''; - ?> - - get_name() ) ] ) ? $default_attributes[ sanitize_title( $attribute->get_name() ) ] : ''; + ?> + +
@@ -62,11 +68,11 @@ if ( ! defined( 'ABSPATH' ) ) { - - - - - + + + + + @@ -95,10 +101,10 @@ if ( ! defined( 'ABSPATH' ) ) { - + » @@ -107,10 +113,12 @@ if ( ! defined( 'ABSPATH' ) ) {
-
+ + +
@@ -119,7 +127,7 @@ if ( ! defined( 'ABSPATH' ) ) {
- + ( / ) @@ -130,10 +138,10 @@ if ( ! defined( 'ABSPATH' ) ) { - + »