This commit is contained in:
Javier Casares 2026-07-09 06:20:06 +00:00
commit 31f7e97d39

View file

@ -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 );
}