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) ) { +
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e3981f221c..7dbdc305a4 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1390,7 +1390,7 @@ function _post_row($a_post, $pending_comments, $mode) { if ( !empty( $categories ) ) { $out = array(); foreach ( $categories as $c ) - $out[] = " " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . ""; + $out[] = " " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . ""; echo join( ', ', $out ); } else { _e('Uncategorized'); @@ -1406,7 +1406,7 @@ function _post_row($a_post, $pending_comments, $mode) { if ( !empty( $tags ) ) { $out = array(); foreach ( $tags as $c ) - $out[] = " " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . ""; + $out[] = " " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . ""; echo join( ', ', $out ); } else { _e('No Tags');