From 109768b7888b944c7f83e2671b90bddc84e7e8c6 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Mon, 9 Jul 2012 04:56:50 +0000 Subject: [PATCH] Hide UI for Attachment taxonomies if show_ui is false for that taxonomy. props simonwheatley. fixes #21104 git-svn-id: http://core.svn.wordpress.org/trunk@21240 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;