Skip to content

Commit ed534e1

Browse files
authored
Merge pull request #2086 from angelleye/PFW-1889-function-is-front-page-was-called-incorrectly
PFW-1889-function-is-front-page-was-called-incorrectly
2 parents d7e6489 + ec10fa3 commit ed534e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ppcp-gateway/angelleye-paypal-ppcp-common-functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1445,9 +1445,9 @@ function angelleye_ppcp_apple_google_vault_supported_country() {
14451445

14461446
function angelleye_ppcp_pay_later_messaging() {
14471447
$page = '';
1448-
if (is_front_page() || is_home()) {
1448+
if ( (did_action('wp') && is_front_page()) || (did_action('wp') && is_home())) {
14491449
$page = 'home';
1450-
} elseif (is_product_category() || is_category()) {
1450+
} elseif (is_product_category() || (did_action('wp') && is_category())) {
14511451
$page = 'category';
14521452
} elseif (is_product()) {
14531453
$page = 'product';

0 commit comments

Comments
 (0)