Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tag-form.php

    r17141 r14647  
    1717}
    1818
    19 // Back compat hooks
    2019if ( 'category' == $taxonomy )
    2120    do_action('edit_category_form_pre', $tag );
    22 elseif ( 'link_category' == $taxonomy )
    23     do_action('edit_link_category_form_pre', $tag );
    2421else
    2522    do_action('edit_tag_form_pre', $tag);
    26 
    2723do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy);  ?>
    2824
     
    5349            <th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
    5450            <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 />
    5652                <?php if ( 'category' == $taxonomy ) : ?>
    5753                <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>
     
    6258        <tr class="form-field">
    6359            <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 />
    6561            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    6662        </tr>
    6763        <?php
    68         // Back compat hooks
    6964        if ( 'category' == $taxonomy )
    7065            do_action('edit_category_form_fields', $tag);
    71         if ( 'link_category' == $taxonomy )
    72             do_action('edit_link_category_form_fields', $tag);
    7366        else
    7467            do_action('edit_tag_form_fields', $tag);
    75 
    7668        do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy);
    7769        ?>
    7870    </table>
    7971<?php
    80 // Back compat hooks
    8172if ( 'category' == $taxonomy )
    8273    do_action('edit_category_form', $tag);
    83 if ( 'link_category' == $taxonomy )
    84     do_action('edit_link_category_form', $tag);
    8574else
    8675    do_action('edit_tag_form', $tag);
    87 
    8876do_action($taxonomy . '_edit_form', $tag, $taxonomy);
    89 
    90 submit_button( __('Update') );
    9177?>
     78<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr( __( 'Update' ) ); ?>" /></p>
    9279</form>
    9380</div>
Note: See TracChangeset for help on using the changeset viewer.