diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index bb7a57f4b5..fba8bcc033 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -969,7 +969,7 @@ function get_attachment_fields_to_edit($post, $errors = null) { foreach ( get_attachment_taxonomies($post) as $taxonomy ) { $t = (array) get_taxonomy($taxonomy); - if ( ! $t['public'] ) + if ( ! $t['public'] || ! $t['show_ui'] ) continue; if ( empty($t['label']) ) $t['label'] = $taxonomy;