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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2009-02-12 08:00:29 +00:00
parent 53d6b4e598
commit affd966711
8 changed files with 32 additions and 9 deletions

View File

@@ -1083,9 +1083,14 @@ case 'inline-save-tax':
break;
case 'tag' :
$updated = wp_update_term($id, 'post_tag', $_POST);
if ( !empty($_POST['taxonomy']) )
$taxonomy = $_POST['taxonomy'];
else
$taxonomy = 'post_tag';
$updated = wp_update_term($id, $taxonomy, $_POST);
if ( $updated && !is_wp_error($updated) ) {
$tag = get_term( $updated['term_id'], 'post_tag' );
$tag = get_term( $updated['term_id'], $taxonomy );
if ( !$tag || is_wp_error( $tag ) )
die( __('Tag not updated.') );