Changeset 9339 for trunk/wp-admin/edit-tag-form.php
- Timestamp:
- 10/25/2008 08:01:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r9032 r9339 7 7 */ 8 8 9 if ( ! empty($tag_ID) ) { 10 /** 11 * @var string 12 */ 13 $heading = ''; 14 $submit_text = __('Edit Tag'); 15 $form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">'; 16 $action = 'editedtag'; 17 $nonce_action = 'update-tag_' . $tag_ID; 18 do_action('edit_tag_form_pre', $tag); 19 } else { 20 $heading = '<h2>' . __('Add Tag') . '</h2>'; 21 $submit_text = __('Add Tag'); 22 $form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">'; 23 $action = 'addtag'; 24 $nonce_action = 'add-tag'; 25 do_action('add_tag_form_pre', $tag); 9 if ( empty($tag_ID) ) { ?> 10 <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div> 11 <?php 12 return; 26 13 } 27 ?> 14 15 do_action('edit_tag_form_pre', $tag); ?> 28 16 29 17 <div class="wrap"> 30 < ?php echo $heading ?>18 <h2><?php _e('Edit Tag'); ?></h2> 31 19 <div id="ajax-response"></div> 32 < ?php echo $form ?>33 <input type="hidden" name="action" value=" <?php echo $action ?>" />20 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"> 21 <input type="hidden" name="action" value="editedtag" /> 34 22 <input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" /> 35 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field( $nonce_action); ?>23 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?> 36 24 <table class="form-table"> 37 25 <tr class="form-field form-required"> … … 46 34 </tr> 47 35 </table> 48 <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text?>" /></p>36 <p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Edit Tag'); ?>" /></p> 49 37 <?php do_action('edit_tag_form', $tag); ?> 50 38 </form>
Note: See TracChangeset
for help on using the changeset viewer.