Skip to content

Commit 52d99c7

Browse files
authored
fix(crumb): Fix error for subpages: Attempt to read property "ID" on int (#14)
1 parent 83d81f3 commit 52d99c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Crumb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function build()
9494
$this->add(
9595
get_the_title($item),
9696
get_permalink($item),
97-
$item->ID
97+
$item
9898
);
9999
});
100100
}

0 commit comments

Comments
 (0)