Skip to content

Commit 8b15dc2

Browse files
authored
Merge pull request #135 from BeAPI/fix/attachment_fields_to_edit
Fix hook return that should be an array
2 parents 3507fdc + b956d52 commit 8b15dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/admin/admin-metaboxes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public static function custom_fields_attachment( $form_fields, $attachment ) {
422422
);
423423

424424
if ( ! empty( $emitter_relation ) ) {
425-
return false;
425+
return $form_fields;
426426
}
427427

428428
// Get syncs for current post_type and mode set to "auto"

0 commit comments

Comments
 (0)