Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit 13409a5

Browse files
authored
Merge pull request #253 from marian-kadanka/fix-is-front-page-conditional-tag
Fix is_front_page() not working on WC shop page set as site's static front page
2 parents 6c73f8a + 2dc44a1 commit 13409a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Hyyan/WPI/Pages.php

-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ public function correctShopPage(\WP $wp) {
114114
$wp->query_vars['post_type'] = 'product';
115115
}
116116
}
117-
} else {
118-
$wp->query_vars['post_type'] = 'product';
119117
}
120118
}
121119

0 commit comments

Comments
 (0)