rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions
@@ -423,7 +423,19 @@
},
error: function(err) {
if (err.status == 503 || err.status == 403) {
window.location.reload(true);
if ($('.woocommerce').length > 0) {
if (err.status == 503) {
showLoginMessage(__('<strong>ERROR</strong>: Login failed with status code 503. Please contact the site administrator.'), 'error');
}
else if (err.status == 403) {
showLoginMessage(__('<strong>ERROR</strong>: Login failed with status code 403. Please contact the site administrator.'), 'error');
}
blocker.unblock();
}
else {
window.location.reload(true);
}
return;
}
showLoginMessage(__('<strong>ERROR</strong>: An error was encountered while trying to authenticate. Please try again.'), 'error');