From 5e8ef8f18d929c455548f21e88988143aee7866d Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Mon, 10 Aug 2015 17:21:52 -0400 Subject: [PATCH] Check for truthiness. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids silliness where `’0’` evaluates to true. Just parse it as an int and evaluate that. --- includes/admin/settings/views/html-settings-tax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/settings/views/html-settings-tax.php b/includes/admin/settings/views/html-settings-tax.php index 0ccca044a77..caee89400e5 100644 --- a/includes/admin/settings/views/html-settings-tax.php +++ b/includes/admin/settings/views/html-settings-tax.php @@ -82,11 +82,11 @@ if ( ! defined( 'ABSPATH' ) ) { - checked="checked" <# } #> data-attribute="tax_rate_compound" /> + checked="checked" <# } #> data-attribute="tax_rate_compound" /> - checked="checked" <# } #> data-attribute="tax_rate_shipping" /> + checked="checked" <# } #> data-attribute="tax_rate_shipping" />