Skip to content

Commit

Permalink
remove duplicate echo for payment referrer echo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Elliott committed Feb 15, 2018
1 parent f91e764 commit 2b8c138
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ public function __construct() {
* Make _wca available to queue events
*/
public function wp_head_top() {
$wca_code = "<script>window._wca = window._wca || [];</script>";
if ( is_cart() || is_checkout() || is_checkout_pay_page() || is_order_received_page() || is_add_payment_method_page() ) {
$prevent_referrer_code = "<script>window._wca_prevent_referrer = true;</script>";
echo "$prevent_referrer_code\r\n";
$wca_code .= "\r\n<script>window._wca_prevent_referrer = true;</script>";
}
$wca_code = "<script>window._wca = window._wca || [];</script>";
echo "$wca_code\r\n";
}

Expand Down

0 comments on commit 2b8c138

Please sign in to comment.