Make WordPress Core


Ignore:
Timestamp:
02/12/2009 08:00:29 AM (18 years ago)
Author:
azaozz
Message:

Custom taxonomies support: quick edit, delete, show in the menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r10553 r10557  
    3333        $submenu['edit.php'][5]  = array( __('Edit'), 'edit_posts', 'edit.php' );
    3434        $submenu['edit.php'][10]  = array( _c('Add New|post'), 'edit_posts', 'post-new.php' );
    35         $submenu['edit.php'][15] = array( __('Tags'), 'manage_categories', 'edit-tags.php' );
     35
     36        $i = 15;
     37        foreach ( $wp_taxonomies as $tax ) {
     38                if ( 'category' == $tax->name || 'link_category' == $tax->name )
     39                        continue;
     40
     41                $submenu['edit.php'][$i] = array( attribute_escape($tax->label), 'manage_categories', 'edit-tags.php?taxonomy=' . $tax->name );
     42                ++$i;
     43        }
     44
    3645        $submenu['edit.php'][20] = array( __('Categories'), 'manage_categories', 'categories.php' );
    3746
Note: See TracChangeset for help on using the changeset viewer.