Skip to content

Commit

Permalink
headers fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mejta committed Apr 11, 2019
1 parent ecf5027 commit b19b9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetteLatteEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function registerCustomTemplates(array $page_templates, \WP_Theme $theme,
continue;
}

if (!$headers->postType) {
if (!$headers['postType']) {
$headers['postType'] = 'page';
}

Expand Down

0 comments on commit b19b9bb

Please sign in to comment.