We currently assume that the global WP post types array only contains proper WP_Post_Type object. Apparently, this isn't always the case. We can check for object type and maybe properties before using. Should also add a check and warning in the settings page.
We currently assume that the global WP post types array only contains proper WP_Post_Type object. Apparently, this isn't always the case. We can check for object type and maybe properties before using. Should also add a check and warning in the settings page.