@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | ], |
| 17 | 17 | ]); |
| 18 | 18 | |
| 19 | -add_filter('post_thumbnail_html', function ($html, $post_id, $post_thumbnail_id, $size, $attr) { |
|
| 19 | +add_filter('post_thumbnail_html', function($html, $post_id, $post_thumbnail_id, $size, $attr) { |
|
| 20 | 20 | |
| 21 | 21 | $fallbackFeaturedImageOptions = Options::getGlobal('FeaturedImageFallback'); |
| 22 | 22 | $fallbackFeaturedImage = $fallbackFeaturedImageOptions['image']; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | return $html; |
| 41 | 41 | }, 5); |
| 42 | 42 | |
| 43 | -add_filter('get_post_metadata', function ($null, $object_id, $meta_key, $single) { |
|
| 43 | +add_filter('get_post_metadata', function($null, $object_id, $meta_key, $single) { |
|
| 44 | 44 | // Only affect thumbnails on the frontend, do allow ajax calls. |
| 45 | 45 | if ((is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX))) { |
| 46 | 46 | return $null; |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | use Flynt\ComponentManager; |
| 6 | 6 | use Flynt\Utils\Asset; |
| 7 | 7 | |
| 8 | -add_action('login_enqueue_scripts', function () { |
|
| 8 | +add_action('login_enqueue_scripts', function() { |
|
| 9 | 9 | $logo = [ |
| 10 | 10 | 'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/FeatureAdminLoginBranding/Assets/logo.svg'), |
| 11 | 11 | 'alt' => get_bloginfo('name') |
@@ -32,12 +32,12 @@ discard block |
||
| 32 | 32 | ]); |
| 33 | 33 | }, 99); |
| 34 | 34 | |
| 35 | -add_filter('login_headerurl', function () { |
|
| 35 | +add_filter('login_headerurl', function() { |
|
| 36 | 36 | ; |
| 37 | 37 | return home_url(); |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | -add_filter('login_headertext', function () { |
|
| 40 | +add_filter('login_headertext', function() { |
|
| 41 | 41 | ; |
| 42 | 42 | return get_bloginfo('name') . get_bloginfo('description'); |
| 43 | 43 | }); |