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

git-svn-id: https://develop.svn.wordpress.org/trunk@10557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-02-12 08:00:29 +00:00
parent 527378f82a
commit ab056a19be
8 changed files with 32 additions and 9 deletions
+10 -1
View File
@@ -32,7 +32,16 @@ $menu[4] = array( '', 'read', '', '', 'wp-menu-separator' );
$menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'wp-menu-open menu-top', 'menu-posts', 'div' );
$submenu['edit.php'][5] = array( __('Edit'), 'edit_posts', 'edit.php' );
$submenu['edit.php'][10] = array( _c('Add New|post'), 'edit_posts', 'post-new.php' );
$submenu['edit.php'][15] = array( __('Tags'), 'manage_categories', 'edit-tags.php' );
$i = 15;
foreach ( $wp_taxonomies as $tax ) {
if ( 'category' == $tax->name || 'link_category' == $tax->name )
continue;
$submenu['edit.php'][$i] = array( attribute_escape($tax->label), 'manage_categories', 'edit-tags.php?taxonomy=' . $tax->name );
++$i;
}
$submenu['edit.php'][20] = array( __('Categories'), 'manage_categories', 'categories.php' );
$menu[10] = array( __('Media'), 'upload_files', 'upload.php', '', 'menu-top', 'menu-media', 'div' );