jjgrainger / wp-custom-post-type-class

A PHP Class for creating Wordpress Custom Post Types easily
MIT License
416 stars 114 forks source link

v1.3.2 error #37

Closed deadlyhifi closed 9 years ago

deadlyhifi commented 9 years ago

I've just upgraded to v1.3.2 and am seeing the following error.

Warning: Invalid argument supplied for foreach() in /var/www/project/vendor/jjgrainger/wp-custom-post-type-class/src/CPT.php on line 568

jjgrainger commented 9 years ago

Thats annoying,

I've missed out a simple if( is_array( $this->existing_taxonomies ) ) before looping through the array :(

Thanks for bringing it up, I'll get this fixed now :)

deadlyhifi commented 9 years ago

No problem, thanks for the quick fix.