2008-01-25 19:29:01 +00:00
< ? php
2008-08-16 07:27:34 +00:00
/**
* Edit tag form for inclusion in administration panels .
*
* @ package WordPress
* @ subpackage Administration
*/
2008-10-25 08:01:37 +00:00
if ( empty ( $tag_ID ) ) { ?>
< div id = " message " class = " updated fade " >< p >< strong >< ? php _e ( 'A tag was not selected for editing.' ); ?> </strong></p></div>
< ? php
return ;
2008-01-25 19:29:01 +00:00
}
2008-10-25 08:01:37 +00:00
do_action ( 'edit_tag_form_pre' , $tag ); ?>
2008-01-25 19:29:01 +00:00
< div class = " wrap " >
2008-10-25 08:01:37 +00:00
< h2 >< ? php _e ( 'Edit Tag' ); ?> </h2>
2008-01-25 19:29:01 +00:00
< div id = " ajax-response " ></ div >
2008-10-25 08:01:37 +00:00
< form name = " edittag " id = " edittag " method = " post " action = " edit-tags.php " class = " validate " >
< input type = " hidden " name = " action " value = " editedtag " />
2008-01-25 19:29:01 +00:00
< input type = " hidden " name = " tag_ID " value = " <?php echo $tag->term_id ?> " />
2008-10-25 08:01:37 +00:00
< ? php wp_original_referer_field ( true , 'previous' ); wp_nonce_field ( 'update-tag_' . $tag_ID ); ?>
2008-02-24 04:33:10 +00:00
< table class = " form-table " >
2008-01-25 19:29:01 +00:00
< tr class = " form-field form-required " >
2008-02-20 20:30:39 +00:00
< th scope = " row " valign = " top " >< label for = " name " >< ? php _e ( 'Tag name' ) ?> </label></th>
2008-09-21 20:41:25 +00:00
< td >< input name = " name " id = " name " type = " text " value = " <?php if ( isset( $tag->name ) ) echo attribute_escape( $tag->name ); ?> " size = " 40 " aria - required = " true " />
2008-03-11 07:23:07 +00:00
< p >< ? php _e ( 'The name is how the tag appears on your site.' ); ?> </p></td>
2008-01-25 19:29:01 +00:00
</ tr >
< tr class = " form-field " >
2008-02-20 20:30:39 +00:00
< th scope = " row " valign = " top " >< label for = " slug " >< ? php _e ( 'Tag slug' ) ?> </label></th>
2008-09-21 20:41:25 +00:00
< td >< input name = " slug " id = " slug " type = " text " value = " <?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug )); ?> " size = " 40 " />
2008-03-11 07:23:07 +00:00
< p >< ? php _e ( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ); ?> </p></td>
2008-01-25 19:29:01 +00:00
</ tr >
</ table >
2008-10-25 08:01:37 +00:00
< p class = " submit " >< input type = " submit " class = " button " name = " submit " value = " <?php _e('Edit Tag'); ?> " /></ p >
2008-01-25 19:29:01 +00:00
< ? php do_action ( 'edit_tag_form' , $tag ); ?>
</ form >
</ div >