@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Timber\Timber; |
| 4 | 4 | |
| 5 | -add_filter('wp_insert_post_data', function ($data, $postArr) { |
|
| 5 | +add_filter('wp_insert_post_data', function($data, $postArr) { |
|
| 6 | 6 | if ($postArr['post_type'] === 'revision') { |
| 7 | 7 | return $data; |
| 8 | 8 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | return $data; |
| 13 | 13 | }, 99, 2); |
| 14 | 14 | |
| 15 | -add_shortcode('flyntTheContent', function ($attrs) { |
|
| 15 | +add_shortcode('flyntTheContent', function($attrs) { |
|
| 16 | 16 | $postId = $attrs['id']; |
| 17 | 17 | |
| 18 | 18 | $context = getTimberDefaultContext($postId); |