diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 902bf95876..ef0734e329 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -404,9 +404,8 @@ function post_tags_meta_box( $post, $box ) { $args = $box['args']; } $r = wp_parse_args( $args, $defaults ); - $tax = $r['taxonomy']; - $tax_name = esc_attr( $tax ); - $taxonomy = get_taxonomy( $tax ); + $tax_name = esc_attr( $r['taxonomy'] ); + $taxonomy = get_taxonomy( $r['taxonomy'] ); $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); $comma = _x( ',', 'tag delimiter' ); ?> @@ -462,50 +461,50 @@ function post_categories_meta_box( $post, $box ) { $args = $box['args']; } $r = wp_parse_args( $args, $defaults ); - $taxonomy = $r['taxonomy']; - $tax = get_taxonomy( $taxonomy ); + $tax_name = esc_attr( $r['taxonomy'] ); + $taxonomy = get_taxonomy( $r['taxonomy'] ); ?> -
-