wordfence-cli icon indicating copy to clipboard operation
wordfence-cli copied to clipboard

Handle directive-heavy wp-config parsing

Open mmaunder opened this issue 3 months ago • 0 comments

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 .

mmaunder avatar Sep 23 '25 06:09 mmaunder