When creating or editing a custom type, I get this error:
Warning: Invalid argument supplied for foreach() in includes/post-relationship.php on line 200
As a temporary workaround, I've added a check just before foreach statement:
if (!empty($relationships[$data['slug']]))
So a working piece of code starting at line 200 looks like this:
if (!empty($relationships[$data['slug']])) {
foreach ($relationships[$data['slug']] as $post_type_has => $rel_data) {
if (!isset($data['post_relationship']['has'][$post_type_has])) {
unset($relationships[$data['slug']][$post_type_has]);
}
}
}