Skip to content

Commit

Permalink
Fix typo of is_numeric()
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 13, 2019
1 parent 1cce6db commit 9ca3f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Directives/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

'published' => function ($expression) {
if (! empty($expression)) {
return "<?php if (is_a({$expression}, 'WP_Post') || is_number({$expression})) : ?>".
return "<?php if (is_a({$expression}, 'WP_Post') || is_numeric({$expression})) : ?>".
"<?= get_the_date('', {$expression}); ?>".
"<?php endif; ?>".

Expand All @@ -118,7 +118,7 @@

'modified' => function ($expression) {
if (! empty($expression)) {
return "<?php if (is_a({$expression}, 'WP_Post') || is_number({$expression})) : ?>".
return "<?php if (is_a({$expression}, 'WP_Post') || is_numeric({$expression})) : ?>".
"<?= get_the_modified_date('', {$expression}); ?>".
"<?php endif; ?>".

Expand Down

0 comments on commit 9ca3f66

Please sign in to comment.