Skip to content

Commit 791111f

Browse files
authored
fix: removed revert due of infinite loop
1 parent 7d4c5bc commit 791111f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

classes/class-wc-tpayway.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,16 @@ function check_tcompayway_response()
482482

483483
// Return if is error during installation
484484
// Back to homepage
485-
if (!isset($_POST['ShoppingCartID'])) {
486-
$text = '<html><meta charset="utf-8"><body><center>';
487-
$text .= __('Redirecting...', 'tcom-payway-wc');
488-
$text .= '</center><script>setTimeout(function(){ window.location.replace("' . home_url() . '"); },1500);</script></body></html>';
485+
// commented due of infinite loop
486+
//if (!isset($_POST['ShoppingCartID'])) {
487+
// $text = '<html><meta charset="utf-8"><body><center>';
488+
// $text .= __('Redirecting...', 'tcom-payway-wc');
489+
// $text .= '</center><script>setTimeout(function(){ window.location.replace("' . home_url() . '"); },1500);</script></body></html>';
489490

490-
echo $text;
491+
// echo $text;
491492

492-
exit;
493-
}
493+
// exit;
494+
//}
494495

495496
if (!$_POST['Amount']) {
496497
$amount = 0;

0 commit comments

Comments
 (0)