PostTypes icon indicating copy to clipboard operation
PostTypes copied to clipboard

empty array if taxonomy query var is null

Open Barny-Thorpe opened this issue 1 year ago • 2 comments

ERROR:

PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, 
null given in .../vendor/jjgrainger/posttypes/src/Taxonomy.php:361

FIX: return empty array if $query->query_vars['taxonomy'] is null.

Closes: closes https://github.com/jjgrainger/PostTypes/issues/86, closes https://github.com/jjgrainger/PostTypes/issues/85, closes https://github.com/jjgrainger/PostTypes/issues/76

Barny-Thorpe avatar Mar 31 '23 10:03 Barny-Thorpe

Hey @jjgrainger , can we get this merged? If any columns are added to custom taxonomy we are unable to save new terms. Thanks.

briandetweiler avatar May 08 '23 19:05 briandetweiler

Can we please get this merged @jjgrainger ?

nilsringersma avatar Oct 05 '23 10:10 nilsringersma