Permalink
Browse files

Probably fix to erroneous property error for $parent_id in the breadc…

…rumbs.php
  • Loading branch information...
1 parent 525d61c commit 0e06b610cd222c779613a0a95705031ac74b8f04 @Frumph committed Aug 31, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions/breadcrumbs.php
@@ -50,7 +50,7 @@ function comicpress_breadcrumbs() {
$link_in_after = '</span>';
$link = $link_before . '<a href="%1$s"' . $link_attr . '>' . $link_in_before . '%2$s' . $link_in_after . '</a>' . $link_after;
$frontpage_id = get_option('page_on_front');
- $parent_id = $post->post_parent;
+ $parent_id = (!empty($post)) ? $post->post_parent : false;
$sep = ' ' . $sep_before . $sep . $sep_after . ' ';
if (is_home() || is_front_page()) {

0 comments on commit 0e06b61

Please sign in to comment.