Make WordPress Core


Ignore:
Timestamp:
02/04/2010 10:51:58 AM (15 years ago)
Author:
dd32
Message:

Migrate Category Edit UI hooks, Standardise on custom-taxonomies hooks, add custom-fields for taxonomies UI hooks. See #11838, Fixes #11191

File:
1 edited

Legend:

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

    r12818 r12941  
    2020}
    2121
    22 do_action('edit_tag_form_pre', $tag); ?>
     22if ( 'category' == $taxonomy )
     23    do_action('edit_category_form_pre', $tag );
     24else
     25    do_action('edit_tag_form_pre', $tag);
     26do_action('edit_' . $taxonomy . '_form_pre', $tag, $taxonomy);  ?>
    2327
    2428<div class="wrap">
     
    5761            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    5862        </tr>
    59         <?php do_action('edit_tag_form_fields', $tag); ?>
     63        <?php
     64        if ( 'category' == $taxonomy )
     65            do_action('edit_category_form_fields', $tag);
     66        else
     67            do_action('edit_tag_form_fields', $tag);
     68        do_action('edit_' . $taxonomy . '_form_fields', $tag, $taxonomy);
     69        ?>
    6070    </table>
    6171<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p>
    62 <?php do_action('edit_tag_form', $tag); ?>
     72<?php
     73if ( 'category' == $taxonomy )
     74    do_action('edit_category_form_', $tag);
     75else
     76    do_action('edit_tag_form_', $tag);
     77do_action('edit_' . $taxonomy . '_form', $tag, $taxonomy);
     78?>
    6379</form>
    6480</div>
Note: See TracChangeset for help on using the changeset viewer.