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