Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mejta committed Apr 4, 2019
1 parent 0a9e561 commit 9e4357d
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 @@ -132,7 +132,7 @@ public function addLatteTemplate(array $templates): array
* Return custom templates from theme directory
* https://developer.wordpress.org/reference/classes/wp_theme/get_post_templates/
*/
public function registerCustomTemplates(array $page_templates, \WP_Theme $theme, \WP_Post $post): array
public function registerCustomTemplates(array $page_templates, \WP_Theme $theme, \WP_Post $post = null): array
{
$files = $theme->get_files('latte', 1);
$postType = get_post_type($post);
Expand Down

0 comments on commit 9e4357d

Please sign in to comment.