Opened 10 years ago
Closed 10 years ago
#31698 closed defect (bug) (wontfix)
Fields added via `attachment_fields_to_edit` filter not included in "Image Details" UI
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
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
@
10 years ago
- Keywords close removed
Then we should fix the UX inconsistency. The user doesn't know any different.
#3
in reply to:
↑ 2
@
10 years ago
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to 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.
Note: See
TracTickets for help on using
tickets.
From @helen's closing comment on #22926: