X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/849f15aeed7a5e39314057bdc0064d8edd60dd7d..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/edit-tag-form.php?ds=sidebyside diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 94a26bbd..d233b309 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -7,13 +7,8 @@ */ // don't load directly -if ( !defined('ABSPATH') ) - die('-1'); - -if ( empty($tag_ID) ) { ?> -

-
-

labels->edit_item; ?>

+

labels->edit_item; ?>

+ + +
+

+ +

labels->name ); + ?>

+ +
+ +
-
> - - - - + + + + @@ -91,14 +126,21 @@ do_action( "{$taxonomy}_term_edit_form_tag" ); slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; ?> - @@ -106,7 +148,22 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
+

- 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?> + 0, + 'hide_if_empty' => false, + 'taxonomy' => $taxonomy, + 'name' => 'parent', + 'orderby' => 'name', + 'selected' => $tag->parent, + 'exclude_tree' => $tag->term_id, + 'hierarchical' => true, + 'show_option_none' => __( 'None' ), + ); + + /** This filter is documented in wp-admin/edit-tags.php */ + $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); + wp_dropdown_categories( $dropdown_args ); ?>