projects
/
WP-Themes
/
harborcountry.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281e271
)
Check WooCommerce function exists before using it
author
Laury GvR
<laury@gaslightmedia.com>
Wed, 9 Nov 2016 21:13:51 +0000
(16:13 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Wed, 9 Nov 2016 21:13:51 +0000
(16:13 -0500)
Checks whether the is_account_page function exists before it is
used on the interior page, so too with is_cart and is_checkout.
sections/interior-page.php
patch
|
blob
|
history
diff --git
a/sections/interior-page.php
b/sections/interior-page.php
index
cf38bc1
..
1c8231d
100644
(file)
--- a/
sections/interior-page.php
+++ b/
sections/interior-page.php
@@
-55,7
+55,7
@@
echo "</div>";
} ?>
<!-- check for chamber page template -->
- <?php } else if (
is_account_page() || is_cart() || is_checkout(
)) {
+ <?php } else if (
function_exists('is_account_page') && (is_account_page() || is_cart() || is_checkout()
)) {
?>