Skip to content

Commit 6fe3073

Browse files
committed
fix: pass null to action calls for get_header and get_footer in Twig templates
1 parent af563d0 commit 6fe3073

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

views/layouts/base.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
{% include 'partials/footer.twig' %}
3939
{% endblock %}
4040
{{ function('wp_footer') }}
41-
{% do action('get_footer') %}
41+
{% do action('get_footer', null) %}
4242
</body>
4343
</html>

views/partials/head.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1" />
44
<link rel="author" href="{{ site.theme.link }}/humans.txt" />
55
<link rel="profile" href="http://gmpg.org/xfn/11" />
6-
{% do action('get_header') %}
6+
{% do action('get_header', null) %}
77
{{ function('wp_head') }}
88
</head>

0 commit comments

Comments
 (0)