jjgrainger / PostTypes

Simple WordPress custom post types.
https://posttypes.jjgrainger.co.uk/
MIT License
372 stars 48 forks source link

PHP Fatal error: Uncaught TypeError: in_array() - Follow up #86

Closed mmjaeger closed 1 month ago

mmjaeger commented 2 years ago

the error in taxonomy.php on line 361 causes another issue with the HappyFiles plugin (https://happyfiles.io) - I'm unable to create a new folder using HappyFiles in PHP 8 - it work with PHP 7

I tried to fix it like this - HappyFiles works now but I don't know yet whether this causes another issue // don't modify the query if we're not in the post type admin if (!is_admin() || !in_array($this->name, (array) $query->query_vars['taxonomy'])) { return; }