Skip to content

Commit

Permalink
Add third parameter to the get_the_post_thumbnail call when it isn't …
Browse files Browse the repository at this point in the history
…boolean

Fixes Log1x#73
  • Loading branch information
EHLOVader committed May 11, 2022
1 parent d4461df commit 6e93123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directives/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
return "<?= get_the_post_thumbnail_url({$expression->get(0)}, is_numeric({$expression->get(1)}) ? [{$expression->get(1)}, {$expression->get(1)}] : {$expression->get(1)}); ?>"; // phpcs:ignore
}

return "<?= get_the_post_thumbnail({$expression->get(0)}, is_numeric({$expression->get(1)}) ? [{$expression->get(1)}, {$expression->get(1)}] : {$expression->get(1)}); ?>"; // phpcs:ignore
return "<?= get_the_post_thumbnail({$expression->get(0)}, is_numeric({$expression->get(1)}) ? [{$expression->get(1)}, {$expression->get(1)}] : {$expression->get(1)}, {$expression->get(2)}); ?>"; // phpcs:ignore
}

if (! empty($expression->get(1))) {
Expand Down

0 comments on commit 6e93123

Please sign in to comment.