diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 0997c76268..142f9d80c6 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -552,7 +552,7 @@ case 'add-link-cat' : // From Blogroll -> Categories break; case 'add-tag' : // From Manage->Tags check_ajax_referer( 'add-tag' ); - + $post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post'; $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag'; $tax = get_taxonomy($taxonomy); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 1991270540..5fc181569c 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -382,6 +382,7 @@ if ( current_user_can($tax->cap->edit_terms) ) { +