Changeset 42343 for trunk/src/wp-admin/edit-tag-form.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tag-form.php
r42217 r42343 15 15 if ( 'category' == $taxonomy ) { 16 16 /** 17 17 * Fires before the Edit Category form. 18 18 * 19 19 * @since 2.1.0 … … 75 75 <p><strong><?php echo $message; ?></strong></p> 76 76 <?php if ( $wp_http_referer ) { ?> 77 <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"><?php 78 echo esc_html( $tax->labels->back_to_items ); 79 ?></a></p> 77 <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"> 78 <?php 79 echo esc_html( $tax->labels->back_to_items ); 80 ?> 81 </a></p> 80 82 <?php } ?> 81 83 </div> … … 84 86 <div id="ajax-response"></div> 85 87 86 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php 88 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate" 89 <?php 87 90 /** 88 91 * Fires inside the Edit Term form tag. … … 93 96 */ 94 97 do_action( "{$taxonomy}_term_edit_form_tag" ); 95 ?>> 98 ?> 99 > 96 100 <input type="hidden" name="action" value="editedtag"/> 97 <input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ) ?>"/>98 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ) ?>"/>101 <input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>"/> 102 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>"/> 99 103 <?php 100 104 wp_original_referer_field( true, 'previous' ); … … 124 128 <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th> 125 129 <td><input name="name" id="name" type="text" value="<?php echo $tag_name_value; ?>" size="40" aria-required="true" /> 126 <p class="description"><?php _e( 'The name is how it appears on your site.'); ?></p></td>127 </tr> 128 <?php if ( ! global_terms_enabled() ) { ?>130 <p class="description"><?php _e( 'The name is how it appears on your site.' ); ?></p></td> 131 </tr> 132 <?php if ( ! global_terms_enabled() ) { ?> 129 133 <tr class="form-field term-slug-wrap"> 130 134 <th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th> … … 146 150 ?> 147 151 <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" /> 148 <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>152 <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> 149 153 </tr> 150 154 <?php } ?> 151 <?php if ( is_taxonomy_hierarchical( $taxonomy) ) : ?>155 <?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?> 152 156 <tr class="form-field term-parent-wrap"> 153 157 <th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th> … … 168 172 /** This filter is documented in wp-admin/edit-tags.php */ 169 173 $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); 170 wp_dropdown_categories( $dropdown_args ); ?> 174 wp_dropdown_categories( $dropdown_args ); 175 ?> 171 176 <?php if ( 'category' == $taxonomy ) : ?> 172 177 <p 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.' ); ?></p> … … 180 185 <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th> 181 186 <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea> 182 <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.'); ?></p></td>187 <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p></td> 183 188 </tr> 184 189 <?php … … 267 272 <?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?> 268 273 <span id="delete-link"> 269 <a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ?>"><?php _e( 'Delete' ); ?></a>274 <a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ); ?>"><?php _e( 'Delete' ); ?></a> 270 275 </span> 271 276 <?php endif; ?> … … 280 285 try{document.forms.edittag.name.focus();}catch(e){} 281 286 </script> 282 <?php endif; 287 <?php 288 endif;
Note: See TracChangeset
for help on using the changeset viewer.