wordfence-cli
wordfence-cli copied to clipboard
Handle directive-heavy wp-config parsing
Summary
- add a targeted WordPress config parser that extracts DB credentials without executing helper directives
- wire the new parser into WordpressSite and tolerate @-prefixed functions when reading wp-config
- cover conditional defines, constant() indirection, host:port parsing, and other wp-config variants with focused unit tests
Testing
- venv/bin/python -m unittest discover -s wordfence -t .