Skip to content

Commit

Permalink
🎨 Improve the obscurity handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Dec 21, 2023
1 parent 43de4f9 commit dd21915
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Modules/CleanUpModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,16 @@ protected function handleObscurity(): self
}

foreach ([
'adjacent_posts_rel_link_wp_head',
'rest_output_link_wp_head',
'rsd_link',
'wlwmanifest_link',
'wp_generator',
'wp_oembed_add_discovery_links',
'wp_oembed_add_host_js',
] as $hook) {
remove_filter('wp_head', $hook);
}

foreach ([
'adjacent_posts_rel_link_wp_head',
'wp_shortlink_wp_head',
'rest_output_link_wp_head',
] as $hook) {
remove_filter('wp_head', $hook, 20);
remove_filter('wp_head', $hook);
}

add_filter('get_bloginfo_rss', fn ($value) => ! Str::is($value, __('Just another WordPress site')) ? $value : '');
Expand Down

0 comments on commit dd21915

Please sign in to comment.