Hello,
I have been upgrading my sites to PHP8 and fixing issues caught/cause by that. One of the issues was related to the plugin MB Custom Post Types & Custom Taxonomies, specifically by my taxonomy called media-kit-category. That was strange because all the setting were the same as my other taxonomies. After looking at the PHP code, I found that the last line looked like this:
register_taxonomy( 'media-kit-category', ['[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', '[object Object]', 'media-kit'], $args );
I don't know how long that like has been broken like that, but PHP 8 just caught the issue.
Do you know why that happened? And how can I avoid that from happening on other sites?
Thanks! 🙂