Changeset 30998 for trunk/src/wp-admin/edit-tag-form.php
- Timestamp:
- 12/29/2014 03:26:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tag-form.php
r30842 r30998 107 107 <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th> 108 108 <td> 109 <?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'))); ?> 109 <?php 110 $dropdown_args = array( 111 'hide_empty' => 0, 112 'hide_if_empty' => false, 113 'taxonomy' => $taxonomy, 114 'name' => 'parent', 115 'orderby' => 'name', 116 'selected' => $tag->parent, 117 'exclude_tree' => $tag->term_id, 118 'hierarchical' => true, 119 'show_option_none' => __( 'None' ), 120 ); 121 122 /** This filter is documented in wp-admin/edit-tags.php */ 123 $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); 124 wp_dropdown_categories( $dropdown_args ); ?> 110 125 <?php if ( 'category' == $taxonomy ) : ?> 111 126 <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>
Note: See TracChangeset
for help on using the changeset viewer.