Skip to content

Commit

Permalink
Update WordPress.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwebca authored Jun 21, 2024
1 parent 307c3b9 commit 6c97152
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Directives/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ public function directives(): array
*/

'menu' => function ($expression) {
$expression = $this->parse($expression);
return "<?php wp_nav_menu({$expression->get(0)}); ?>";
return "<?php wp_nav_menu($expression); ?>";
},

'hasmenu' => function ($expression) {
Expand Down

0 comments on commit 6c97152

Please sign in to comment.