[wp-trac] [WordPress Trac] #13414: Custom Taxonomies only appear in menu is attached to 'post'

WordPress Trac wp-trac at lists.automattic.com
Sun May 16 18:08:31 UTC 2010


#13414: Custom Taxonomies only appear in menu is attached to 'post'
--------------------------+-------------------------------------------------
 Reporter:  thee17        |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 I've been working with adding this code to line 100 of menu.php:

 {{{
         $i = 25;
         foreach ( $wp_taxonomies as $tax ) {
                 if ( ! $tax->show_ui || ! in_array('attachment:image',
 (array) $tax->object_type, true) )
                         continue;

                 $submenu['upload.php'][$i++] = array( esc_attr(
 $tax->labels->name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' .
 $tax->name );
         }
         unset($tax);
 }}}

 but I cannot figure out yet how to at this point make it work for any
 attachment:.

 Then it probably would be helpful to do the same for pages and new custom
 post types.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13414>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list