v5.1.0
This commit is contained in:
parent
9aef0b4533
commit
31f7e97d39
1 changed files with 719 additions and 655 deletions
|
|
@ -264,6 +264,14 @@ function wpvulnerability_software_get_vulnerabilities( $software ) {
|
|||
*/
|
||||
function wpvulnerability_get_vulnerabilities_clean( $software ) {
|
||||
|
||||
// Skip detection for components the administrator has hidden (either via the
|
||||
// analysis settings or a WPVULNERABILITY_HIDE_* wp-config constant). This
|
||||
// prevents shell_exec from running for components that are meant to be
|
||||
// deactivated, matching the behaviour of the core/plugins/themes clean functions.
|
||||
if ( ! wpvulnerability_analyze_filter( $software ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the installed software cache.
|
||||
wpvulnerability_get_installed( $software );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue