Skip to content

Commit 9e4357d

Browse files
committed
Fix
1 parent 0a9e561 commit 9e4357d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetteLatteEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function addLatteTemplate(array $templates): array
132132
* Return custom templates from theme directory
133133
* https://developer.wordpress.org/reference/classes/wp_theme/get_post_templates/
134134
*/
135-
public function registerCustomTemplates(array $page_templates, \WP_Theme $theme, \WP_Post $post): array
135+
public function registerCustomTemplates(array $page_templates, \WP_Theme $theme, \WP_Post $post = null): array
136136
{
137137
$files = $theme->get_files('latte', 1);
138138
$postType = get_post_type($post);

0 commit comments

Comments
 (0)