WordPress.org

Make WordPress Core

Changeset 25034


Ignore:
Timestamp:
08/16/13 19:53:50 (8 months ago)
Author:
nacin
Message:

Add actions for term editing/creation form tags, for adding enctype attributes. Matches the pattern we've used elsewhere. props JustinSainton, fixes #15261.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r22261 r25034  
    3131<h2><?php echo $tax->labels->edit_item; ?></h2> 
    3232<div id="ajax-response"></div> 
    33 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"> 
     33<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php do_action( $taxonomy . '_term_edit_form_tag' ); ?>> 
    3434<input type="hidden" name="action" value="editedtag" /> 
    3535<input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" /> 
  • trunk/src/wp-admin/edit-tags.php

    r23563 r25034  
    350350<div class="form-wrap"> 
    351351<h3><?php echo $tax->labels->add_new_item; ?></h3> 
    352 <form id="addtag" method="post" action="edit-tags.php" class="validate"> 
     352<form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( $taxonomy . '_term_new_form_tag' ); ?>> 
    353353<input type="hidden" name="action" value="add-tag" /> 
    354354<input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" /> 
Note: See TracChangeset for help on using the changeset viewer.