Don't show private attachment taxonomies in the uploader. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc5d96f856
commit
2b86361848
|
@ -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']) )
|
||||
|
|
Loading…
Reference in New Issue