Skip to content

Commit

Permalink
Remove esc_js as not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Jan 11, 2019
1 parent d1a53dd commit 7d64f37
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion laterpay/application/Controller/Admin/Appearance.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function load_assets() {
),
'l10n_print_after' => 'lpVars.overlaySettings = JSON.parse(lpVars.overlaySettings)',
'gaData' => array(
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '',
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '',
),
)
);
Expand Down
2 changes: 1 addition & 1 deletion laterpay/application/Controller/Admin/Post/Metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function load_scripts() {
'l10n_print_after' => 'jQuery.extend(lpVars, laterpay_post_edit)',
'postPriceBehaviour' => LaterPay_Helper_Pricing::get_post_price_behaviour(),
'gaData' => array(
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '',
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '',
),
)
);
Expand Down
2 changes: 1 addition & 1 deletion laterpay/application/Controller/Admin/Pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function load_assets() {
lpVars.sub_vouchers_list = JSON.parse(lpVars.sub_vouchers_list);
lpVars.vouchers_statistic = JSON.parse(lpVars.vouchers_statistic);',
'gaData' => array(
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '',
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '',
),
)
);
Expand Down
4 changes: 2 additions & 2 deletions laterpay/application/Controller/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function load_assets()
'invalidCode' => esc_html__( 'Please enter valid UA-ID code!', 'laterpay' ),
),
'gaData' => array(
'custom_roles' => array_map( 'esc_js', $custom_role_names ),
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '',
'custom_roles' => $custom_role_names,
'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '',
),
)
);
Expand Down

0 comments on commit 7d64f37

Please sign in to comment.