Skip to content

Commit

Permalink
Fix wrong var nam in BranchPostTypeArchive
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
gmazzap committed Dec 28, 2017
1 parent adb52da commit 239f9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Branch/BranchPostTypeArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function leaves(\WP_Query $query)
private function postType(\WP_Query $query)
{
$type = $query->get('post_type');
is_array($type) and $type = reset($post_type);
is_array($type) and $type = reset($type);

$object = get_post_type_object($type);
(is_object($object) && $object->has_archive) or $type = '';
Expand Down

0 comments on commit 239f9bb

Please sign in to comment.