Opened 14 years ago
Closed 14 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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
@
14 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
@
14 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to prevent taxonomy fields showing on media item edit form if show_ui is false