Check WooCommerce function exists before using it
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 Nov 2016 21:13:51 +0000 (16:13 -0500)
committerLaury 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

index cf38bc1..1c8231d 100644 (file)
@@ -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())) { 
                     
                 ?>