Opened 10 years ago
Last modified 5 years ago
#31691 new defect (bug)
Taxonomies registered to Attachments post type don't show in media modal if public = false but show_ui = true.
Reported by: | husobj | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1.1 |
Component: | Administration | Keywords: | |
Focuses: | administration | Cc: |
Description
If you register a taxonomy for the attachment
post type with the parameters:
public => false, show_ui => true
If correctly shows the UI meta box when viewing the old-style edit media page.
However, if doesn't show fields in the edit media modal.
If you set public
to true then it does show.
The media modal should check the show_ui
value to determine wether taxonomy fields should be shown in the attachment media modal.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
The attached patch shows taxonomy fields in the media modal if
show_ui
is true and a custom metabox callback is not define (i.e. assumes that ifmeta_box_cb
is defined taxonomy fields should be handled by a custom function, not default UI).