Opened 11 years ago
Closed 11 years ago
#31698 closed defect (bug) (wontfix)
Fields added via `attachment_fields_to_edit` filter not included in "Image Details" UI
| Reported by: | danielbachhuber | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
I can add a field to the Attachment Details UI via the attachment_fields_to_edit filter:
add_filter( 'attachment_fields_to_edit', function( $fields, $post ){
$metadata = wp_get_attachment_metadata( $post->ID );
if ( ! empty( $metadata['image_meta'] ) ) {
$fields['fusion_credit'] = array(
'label' => esc_html__( 'Credit', 'fusion' ),
'input' => 'text',
'value' => $metadata['image_meta']['credit'],
);
}
return $fields;
}, 10, 2 );
I'd expect this field would be appear in "Image Details" too, but it doesn't (ignore the credit in the caption field):
Change History (3)
#2
follow-up:
↓ 3
@
11 years ago
- Keywords close removed
Then we should fix the UX inconsistency. The user doesn't know any different.
#3
in reply to: ↑ 2
@
11 years ago
- Milestone Future Release
- Resolution → wontfix
- Status new → closed
Replying to danielbachhuber:
Then we should fix the UX inconsistency. The user doesn't know any different.
Always open to more ideas on how to make the differences clearer, as it was significant work to even get to this point in 3.9 and we definitely know it could be even better; however, this particular ticket is a wontfix.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

From @helen's closing comment on #22926: