Opened 12 years ago
Closed 12 years ago
#21104 closed defect (bug) (fixed)
Taxonomies on attachments should not generate UI is show_ui is false
Reported by: | simonwheatley | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Media | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Currently if you register a taxonomy and associate it with attachments, the show_ui
argument does not affect whether WordPress generates the UI for the taxonomy in the media item edit form. If
show_ui
is false, then no UI should be generated anywhere in any admin screen.
$args = array( 'label' => 'Test Taxonomy', 'show_ui' => false, ); register_taxonomy( 'test', array( 'attachment' ), $args );
Attachments (1)
Change History (7)
#1
@
12 years ago
Fix seems pretty simple, just check for show_ui
in
get_attachment_fields_to_edit
at the same point as we check for the
public
argument. See patch above.
#3
@
12 years ago
- Keywords commit added; dev-feedback removed
Before doing this, I just wanted to confirm that show_ui is true by default for register_taxonomy(). That is the case, so I am good with this.
Note: See
TracTickets for help on using
tickets.
Patch to prevent taxonomy fields showing on media item edit form if show_ui is false