diff --git a/wp-admin/includes/media.phpX b/wp-admin/includes/media.php
index fc8ce0f..2f09091 100644
a
|
b
|
function get_attachment_fields_to_edit($post, $errors = null) { |
1218 | 1218 | |
1219 | 1219 | foreach ( get_attachment_taxonomies($post) as $taxonomy ) { |
1220 | 1220 | $t = (array) get_taxonomy($taxonomy); |
1221 | | if ( ! $t['public'] || ! $t['show_ui'] ) |
| 1221 | if ( ! $t['public'] && ! $t['show_ui'] ) |
1222 | 1222 | continue; |
1223 | 1223 | if ( empty($t['label']) ) |
1224 | 1224 | $t['label'] = $taxonomy; |
… |
… |
function get_compat_media_markup( $attachment_id, $args = null ) { |
1604 | 1604 | if ( $args['in_modal'] ) { |
1605 | 1605 | foreach ( get_attachment_taxonomies($post) as $taxonomy ) { |
1606 | 1606 | $t = (array) get_taxonomy($taxonomy); |
1607 | | if ( ! $t['public'] || ! $t['show_ui'] ) |
| 1607 | if ( ! $t['public'] && ! $t['show_ui'] ) |
1608 | 1608 | continue; |
1609 | 1609 | if ( empty($t['label']) ) |
1610 | 1610 | $t['label'] = $taxonomy; |