Make WordPress Core

Ticket #35252: 35252.diff

File 35252.diff, 1.0 KB (added by flixos90, 9 years ago)

added the new action

  • src/wp-admin/edit-tag-form.php

     
    107107<input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
    108108<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />
    109109<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
     110
     111<?php
     112/**
     113 * Fires at the beginning of the Edit Term form.
     114 *
     115 * At this point, the required hidden fields and nonces have already been output.
     116 *
     117 * @since 4.5.0
     118 *
     119 * @param object $tag      Current taxonomy term object.
     120 * @param string $taxonomy Current $taxonomy slug.
     121 */
     122do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy ); ?>
     123
    110124        <table class="form-table">
    111125                <tr class="form-field form-required term-name-wrap">
    112126                        <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>