Make WordPress Core

Ticket #29853: edit-tag-form.diff

File edit-tag-form.diff, 1.5 KB (added by TimothyBlynJacobs, 11 years ago)
  • edit-tag-form.php

     
    105105                <tr class="form-field term-parent-wrap">
    106106                        <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
    107107                        <td>
    108                                 <?php wp_dropdown_categories(array('hide_empty' => 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'))); ?>
     108                                <?php
     109                                $dropdown_args = array(
     110                                        'hide_empty'        => 0,
     111                                        'hide_if_empty'     => false,
     112                                        'name'              => 'parent',
     113                                        'orderby'           => 'name',
     114                                        'taxonomy'          => $taxonomy,
     115                                        'selected'          => $tag->parent,
     116                                        'exclude_tree'      => $tag->term_id,
     117                                        'hierarchical'      => true,
     118                                        'show_option_none'  => __('None')
     119                                );
     120
     121                                /** This filter is documented in wp-admin/edit-tags.php */
     122                                $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy );
     123                                wp_dropdown_categories( $dropdown_args ); ?>
    109124                                <?php if ( 'category' == $taxonomy ) : ?>
    110125                                <p class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p>
    111126                                <?php endif; ?>