From e09bde4530e39bed8b05ec78624bde639df82e91 Mon Sep 17 00:00:00 2001 From: n3storm Date: Mon, 18 Aug 2025 08:41:30 +0000 Subject: [PATCH] more meta removed --- mitigation.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mitigation.php b/mitigation.php index 6a9930f..9339894 100644 --- a/mitigation.php +++ b/mitigation.php @@ -49,7 +49,8 @@ class Mitigation { public function init() { // Hook into WordPress init add_action('init', [$this, 'on_init']); - add_action('wp_loaded', array($this, 'on_wp_loaded')); + add_action('wp_loaded', [$this, 'on_wp_loaded']); + } public function run($actions) @@ -82,6 +83,7 @@ class Mitigation { 'remove_wp_generator', ]; $this->run($actions); + add_filter('et_get_theme_version', [$this, 'remove_divi_version']); } public function login_error_mask() @@ -91,9 +93,16 @@ class Mitigation { }); } + public function remove_divi_version() { + return ''; + } + public function remove_wp_generator() { remove_action( 'wp_head', 'wp_generator' ); + remove_action( 'wp_head', 'wc_generator' ); + remove_action( 'wp_head', 'wlwmanifest_link' ); + remove_action( 'wp_head', 'rsd_link' ); } public function mitigation_remove_footer_shake() @@ -102,4 +111,4 @@ class Mitigation { } } -Mitigation::get_instance(); \ No newline at end of file +Mitigation::get_instance();