Changeset 13077 for trunk/wp-admin/edit-tag-form.php
- Timestamp:
- 02/13/2010 03:08:16 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-tag-form.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r13035 r13077 11 11 die('-1'); 12 12 13 if ( !current_user_can('manage_categories') )14 wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));15 16 13 if ( empty($tag_ID) ) { ?> 17 <div id="message" class="updated"><p><strong><?php _e('A tagwas not selected for editing.'); ?></strong></p></div>14 <div id="message" class="updated"><p><strong><?php _e('A item was not selected for editing.'); ?></strong></p></div> 18 15 <?php 19 16 return; … … 28 25 <div class="wrap"> 29 26 <?php screen_icon(); ?> 30 <h2><?php _e('Edit Tag'); ?></h2>27 <h2><?php printf(_x('Edit %s', '%s: singular taxonomy name'), $tax->singular_label); ?></h2> 31 28 <div id="ajax-response"></div> 32 29 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"> … … 37 34 <table class="form-table"> 38 35 <tr class="form-field form-required"> 39 <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th> 40 <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" /></td> 36 <th scope="row" valign="top"><label for="name"><?php echo _x('Name', 'Taxonomy Name'); ?></label></th> 37 <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" /> 38 <p class="description"><?php _e('The name is how it appears on your site.'); ?></p></td> 41 39 </tr> 42 40 <?php if ( !is_multisite() ) { ?> 43 41 <tr class="form-field"> 44 <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug')?></label></th>42 <th scope="row" valign="top"><label for="slug"><?php echo _x('Slug', 'Taxonomy Slug'); ?></label></th> 45 43 <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> 46 44 <p class="description"><?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> 47 45 </tr> 48 46 <?php } ?> 49 <?php if ( is_taxonomy_hierarchical($taxonomy) ) {?>47 <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> 50 48 <tr class="form-field"> 51 <th scope="row" valign="top"><label for="parent"><?php _e('Category Parent')?></label></th>49 <th scope="row" valign="top"><label for="parent"><?php echo _x('Parent', 'Taxonomy Parent'); ?></label></th> 52 50 <td> 53 51 <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br /> 52 <?php if ( 'category' == $taxonomy ) : ?> 54 53 <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span> 54 <?php endif; ?> 55 55 </td> 56 56 </tr> 57 <?php }?>57 <?php endif; // is_taxonomy_hierarchical() ?> 58 58 <tr class="form-field"> 59 <th scope="row" valign="top"><label for="description"><?php _e('Description')?></label></th>59 <th scope="row" valign="top"><label for="description"><?php echo _x('Description', 'Taxonomy Description'); ?></label></th> 60 60 <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->description); ?></textarea><br /> 61 61 <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td> … … 69 69 ?> 70 70 </table> 71 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php e sc_attr_e('Update Tag'); ?>" /></p>71 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr( sprintf(_x('Update %s', '%s: singular taxonomy name'), $tax->singular_label)); ?>" /></p> 72 72 <?php 73 73 if ( 'category' == $taxonomy )
Note: See TracChangeset
for help on using the changeset viewer.