From ecd503ec2c2f1679d978ec7bedde9901193323aa Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Wed, 5 Aug 2015 12:51:44 -0400 Subject: [PATCH] Partial _e() => esc_attr_e() changeover. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s a lot of them, so I’m breaking them into multiple commits. This is safeguarding stuff in case some translation uses a double quote, it will no longer risk breaking out of the attribute. --- .../admin/settings/views/html-settings-tax.php | 18 +++++++++--------- .../settings/views/html-webhooks-edit.php | 14 +++++++------- .../views/html-admin-page-status-report.php | 2 +- includes/admin/views/html-admin-settings.php | 2 +- .../admin/views/html-bulk-edit-product.php | 2 +- .../admin/views/html-quick-edit-product.php | 10 +++++----- templates/auth/form-login.php | 2 +- templates/cart/cart.php | 4 ++-- templates/cart/shipping-calculator.php | 10 +++++----- templates/checkout/form-coupon.php | 4 ++-- templates/checkout/payment.php | 2 +- templates/global/form-login.php | 2 +- .../myaccount/form-add-payment-method.php | 2 +- templates/myaccount/form-edit-account.php | 2 +- templates/myaccount/form-edit-address.php | 2 +- templates/myaccount/form-login.php | 4 ++-- templates/myaccount/my-orders.php | 8 ++++---- templates/order/form-tracking.php | 6 +++--- 18 files changed, 48 insertions(+), 48 deletions(-) diff --git a/includes/admin/settings/views/html-settings-tax.php b/includes/admin/settings/views/html-settings-tax.php index 9dfd7636bec..fca772dc105 100644 --- a/includes/admin/settings/views/html-settings-tax.php +++ b/includes/admin/settings/views/html-settings-tax.php @@ -10,23 +10,23 @@ if ( ! defined( 'ABSPATH' ) ) {   -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] -  [?] +  [?] diff --git a/includes/admin/settings/views/html-webhooks-edit.php b/includes/admin/settings/views/html-webhooks-edit.php index 3b9dbefced3..7bca4b89f60 100644 --- a/includes/admin/settings/views/html-webhooks-edit.php +++ b/includes/admin/settings/views/html-webhooks-edit.php @@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) { - + @@ -73,7 +73,7 @@ if ( ! defined( 'ABSPATH' ) ) { - + @@ -82,7 +82,7 @@ if ( ! defined( 'ABSPATH' ) ) { - + @@ -91,7 +91,7 @@ if ( ! defined( 'ABSPATH' ) ) { - + @@ -100,7 +100,7 @@ if ( ! defined( 'ABSPATH' ) ) { - + @@ -148,7 +148,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- + id ) ) : ?> diff --git a/includes/admin/views/html-admin-page-status-report.php b/includes/admin/views/html-admin-page-status-report.php index 1e6b45aad5c..da44d5d659a 100644 --- a/includes/admin/views/html-admin-page-status-report.php +++ b/includes/admin/views/html-admin-page-status-report.php @@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {

-

+

diff --git a/includes/admin/views/html-admin-settings.php b/includes/admin/views/html-admin-settings.php index 4ba2e5b8c8b..a7e6cf08405 100644 --- a/includes/admin/views/html-admin-settings.php +++ b/includes/admin/views/html-admin-settings.php @@ -29,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- + diff --git a/includes/admin/views/html-bulk-edit-product.php b/includes/admin/views/html-bulk-edit-product.php index a7f6d3ba37d..a2d13024978 100644 --- a/includes/admin/views/html-bulk-edit-product.php +++ b/includes/admin/views/html-bulk-edit-product.php @@ -266,7 +266,7 @@ if ( ! defined( 'ABSPATH' ) ) { diff --git a/includes/admin/views/html-quick-edit-product.php b/includes/admin/views/html-quick-edit-product.php index 77ce2ee5cd9..bcf574a428c 100644 --- a/includes/admin/views/html-quick-edit-product.php +++ b/includes/admin/views/html-quick-edit-product.php @@ -32,14 +32,14 @@ if ( ! defined( 'ABSPATH' ) ) {

@@ -106,9 +106,9 @@ if ( ! defined( 'ABSPATH' ) ) {

- - - + + +
diff --git a/templates/auth/form-login.php b/templates/auth/form-login.php index 347b0a6f398..89661cd0a73 100644 --- a/templates/auth/form-login.php +++ b/templates/auth/form-login.php @@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- +

diff --git a/templates/cart/cart.php b/templates/cart/cart.php index ad611a66426..261432969b9 100644 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -125,13 +125,13 @@ do_action( 'woocommerce_before_cart' ); ?> cart->coupons_enabled() ) { ?>
- +
- + diff --git a/templates/cart/shipping-calculator.php b/templates/cart/shipping-calculator.php index b9da71affca..eb9ab1f83cd 100644 --- a/templates/cart/shipping-calculator.php +++ b/templates/cart/shipping-calculator.php @@ -44,13 +44,13 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart-> // Hidden Input if ( is_array( $states ) && empty( $states ) ) { - ?> - $cvalue ) @@ -62,7 +62,7 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart-> // Standard Input } else { - ?> @@ -71,7 +71,7 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->

- +

@@ -79,7 +79,7 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->

- +

diff --git a/templates/checkout/form-coupon.php b/templates/checkout/form-coupon.php index 442912207bc..ff182836b47 100644 --- a/templates/checkout/form-coupon.php +++ b/templates/checkout/form-coupon.php @@ -22,11 +22,11 @@ wc_print_notice( $info_message, 'notice' );

- +

- +

diff --git a/templates/checkout/payment.php b/templates/checkout/payment.php index a84b72bf07e..364b509479a 100644 --- a/templates/checkout/payment.php +++ b/templates/checkout/payment.php @@ -40,7 +40,7 @@ if ( ! defined( 'ABSPATH' ) ) {
- + diff --git a/templates/global/form-login.php b/templates/global/form-login.php index 0132a15500d..b0e9795bbab 100644 --- a/templates/global/form-login.php +++ b/templates/global/form-login.php @@ -36,7 +36,7 @@ if ( is_user_logged_in() ) {

- +

- +
diff --git a/templates/myaccount/form-edit-account.php b/templates/myaccount/form-edit-account.php index 21c3ab27c01..906c9f9b965 100644 --- a/templates/myaccount/form-edit-account.php +++ b/templates/myaccount/form-edit-account.php @@ -56,7 +56,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- +

diff --git a/templates/myaccount/form-edit-address.php b/templates/myaccount/form-edit-address.php index 53167b2df86..49d8f735e9c 100644 --- a/templates/myaccount/form-edit-address.php +++ b/templates/myaccount/form-edit-address.php @@ -42,7 +42,7 @@ get_currentuserinfo();

- +

diff --git a/templates/myaccount/form-login.php b/templates/myaccount/form-login.php index b853f7cc63c..0ed66d81297 100644 --- a/templates/myaccount/form-login.php +++ b/templates/myaccount/form-login.php @@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- + @@ -100,7 +100,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- +

diff --git a/templates/myaccount/my-orders.php b/templates/myaccount/my-orders.php index 7c96acc36ea..2e9ddc2a310 100644 --- a/templates/myaccount/my-orders.php +++ b/templates/myaccount/my-orders.php @@ -44,18 +44,18 @@ if ( $customer_orders ) : ?> $item_count = $order->get_item_count(); ?>
- - - -
+ get_order_number(); ?> + + get_status() ); ?> + get_formatted_order_total(), $item_count ); ?> diff --git a/templates/order/form-tracking.php b/templates/order/form-tracking.php index c9e61e0cf00..ba6b58f156a 100644 --- a/templates/order/form-tracking.php +++ b/templates/order/form-tracking.php @@ -19,11 +19,11 @@ global $post;

-

-

+

+

-

+