10up / wp-hammer

ARCHIVED: Please see https://github.com/10up/wp-scrubber as replacement.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using deprecated function

dinhtungdu opened this issue · comments

Describe the bug

mcrypt_create_iv was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. Our plugin is using mcrypt_create_iv so it can't be used for PHP ≥ 7.2

Expected behavior
WP Hammer works normally with PHP ≥ 7.2

Environment information

  • Other installed plugin(s) and version(s): WP Local Docker with PHP 7.4

As PHP docs suggested, we can use random_bytes as a replacement for mcrypt_create_iv.