Make WordPress Core

Changeset 21240


Ignore:
Timestamp:
07/09/2012 04:56:50 AM (12 years ago)
Author:
markjaquith
Message:

Hide UI for Attachment taxonomies if show_ui is false for that taxonomy. props simonwheatley. fixes #21104

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r21219 r21240  
    970970    foreach ( get_attachment_taxonomies($post) as $taxonomy ) {
    971971        $t = (array) get_taxonomy($taxonomy);
    972         if ( ! $t['public'] )
     972        if ( ! $t['public'] || ! $t['show_ui'] )
    973973            continue;
    974974        if ( empty($t['label']) )
Note: See TracChangeset for help on using the changeset viewer.