10up / wp-hammer

ARCHIVED: Please see https://github.com/10up/wp-scrubber as replacement.
MIT License
150 stars 15 forks source link

Can not replace posts with dummy posts #17

Closed dinhtungdu closed 4 years ago

dinhtungdu commented 4 years ago

Describe the bug Because we use the dev-master version of roderik/pwgen-php and that repo now uses PSR 4 and namespace, the PWGen call is not working anymore.

Steps to Reproduce

  1. Run this CLI command: wp ha -f posts.post_content=markov,posts.post_title=random
  2. See error: Fatal error: Uncaught Error: Class 'PWGen' not found in /var/www/html/wp-content/plugins/wp-hammer/includes/generators/generic.php:29

Expected behavior

PWGen runs without error.

Environment information WP Local Docker with PHP 7.4

Additional context