Changes in trunk/wp-admin/edit-tag-form.php [14647:17141]
- File:
-
- 1 edited
-
trunk/wp-admin/edit-tag-form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r14647 r17141 17 17 } 18 18 19 // Back compat hooks 19 20 if ( 'category' == $taxonomy ) 20 21 do_action('edit_category_form_pre', $tag ); 22 elseif ( 'link_category' == $taxonomy ) 23 do_action('edit_link_category_form_pre', $tag ); 21 24 else 22 25 do_action('edit_tag_form_pre', $tag); 26 23 27 do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> 24 28 … … 49 53 <th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th> 50 54 <td> 51 <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude ' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />55 <?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'))); ?><br /> 52 56 <?php if ( 'category' == $taxonomy ) : ?> 53 57 <span 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.'); ?></span> … … 58 62 <tr class="form-field"> 59 63 <th scope="row" valign="top"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th> 60 <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->description);?></textarea><br />64 <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $tag->description; // textarea_escaped ?></textarea><br /> 61 65 <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td> 62 66 </tr> 63 67 <?php 68 // Back compat hooks 64 69 if ( 'category' == $taxonomy ) 65 70 do_action('edit_category_form_fields', $tag); 71 if ( 'link_category' == $taxonomy ) 72 do_action('edit_link_category_form_fields', $tag); 66 73 else 67 74 do_action('edit_tag_form_fields', $tag); 75 68 76 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); 69 77 ?> 70 78 </table> 71 79 <?php 80 // Back compat hooks 72 81 if ( 'category' == $taxonomy ) 73 82 do_action('edit_category_form', $tag); 83 if ( 'link_category' == $taxonomy ) 84 do_action('edit_link_category_form', $tag); 74 85 else 75 86 do_action('edit_tag_form', $tag); 87 76 88 do_action($taxonomy . '_edit_form', $tag, $taxonomy); 89 90 submit_button( __('Update') ); 77 91 ?> 78 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr( __( 'Update' ) ); ?>" /></p>79 92 </form> 80 93 </div>
Note: See TracChangeset
for help on using the changeset viewer.