Skip to content

Conversation

@javiercasares
Copy link
Owner

Summary

  • guard detected software versions before sanitising them with wp_kses
  • return null when detection helpers yield empty values to avoid PHP 8.1+ deprecation warnings

Testing

  • vendor/bin/phpunit (fails: WordPress test library is not installed in the container)
  • vendor/bin/phpstan analyse --memory-limit=1G wpvulnerability-software.php (fails: plugin helper functions are not autoloaded for standalone analysis)
  • vendor/bin/phpcs wpvulnerability-software.php (fails: repository PHPCS configuration references a missing PHPCompatibilityWP sniff)

https://chatgpt.com/codex/tasks/task_b_69048ff5fb60832180ca626377fa6725

@amplify-security
Copy link
Contributor

🔍 Amplify code check status:   status looks good

⚠️ 0 issues detected in   📄 1 file and   ❇️ 46 lines of code   🛠️ using Opengrep

Last updated by commit d604eeb at 2025-10-31 10:39:57 UTC.

@sonarqubecloud
Copy link

@javiercasares javiercasares merged commit e68e9b2 into dev Oct 31, 2025
3 checks passed
@javiercasares javiercasares deleted the devel/fix-deprecated-preg_replace-usage branch October 31, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants