Compare commits
2 Commits
mitigation
...
mitigation
Author | SHA1 | Date | |
---|---|---|---|
bbcb72fecd | |||
e09bde4530 |
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Plugin Name: Mitigation
|
||||
* Description: A WordPress plugin with a main class for initialization methods.
|
||||
* Version: 1.0.0
|
||||
* Version: 0.0.5
|
||||
* Author: Your Name
|
||||
* Text Domain: mitigation
|
||||
*/
|
||||
@ -20,7 +20,7 @@ class Mitigation {
|
||||
/**
|
||||
* Plugin version
|
||||
*/
|
||||
const VERSION = '0.03';
|
||||
const VERSION = '0.05';
|
||||
|
||||
/**
|
||||
* Single instance of the class
|
||||
@ -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()
|
||||
|
Reference in New Issue
Block a user