From 4ae97bd34f51974d23c73b1540004049fec4b13f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 28 Oct 2010 18:53:09 +0000 Subject: [PATCH] Don't show private attachment taxonomies in the uploader. see #14746 git-svn-id: https://develop.svn.wordpress.org/trunk@16057 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 08dc8dff56..937d13c9d7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1030,6 +1030,8 @@ function get_attachment_fields_to_edit($post, $errors = null) { foreach ( get_attachment_taxonomies($post) as $taxonomy ) { $t = (array) get_taxonomy($taxonomy); + if ( ! $t['public'] ) + continue; if ( empty($t['label']) ) $t['label'] = $taxonomy; if ( empty($t['args']) )