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

- +/** + * Fires before the Edit Term form for all taxonomies. + * + * The dynamic portion of the hook name, `$taxonomy`, refers to + * the taxonomy slug. + * + * @since 3.0.0 + * + * @param object $tag Current taxonomy term object. + * @param string $taxonomy Current $taxonomy slug. + */ +do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
- -

labels->edit_item; ?>

+

labels->edit_item; ?>

+ + +
+

+ +

labels->name ); + ?>

+ +
+ +
-
- - - - + +> + + + + - - + + - - - + + slug ) ? apply_filters( 'editable_slug', $tag->slug, $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 ); ?>


-
+

+ + + +