]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/edit-tags.php
WordPress 4.1.3
[autoinstalls/wordpress.git] / wp-admin / edit-tags.php
1 <?php
2 /**
3  * Edit Tags Administration Screen.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once( dirname( __FILE__ ) . '/admin.php' );
11
12 if ( ! $taxnow )
13         wp_die( __( 'Invalid taxonomy' ) );
14
15 $tax = get_taxonomy( $taxnow );
16
17 if ( ! $tax )
18         wp_die( __( 'Invalid taxonomy' ) );
19
20 if ( ! current_user_can( $tax->cap->manage_terms ) )
21         wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
22
23 $wp_list_table = _get_list_table('WP_Terms_List_Table');
24 $pagenum = $wp_list_table->get_pagenum();
25
26 $title = $tax->labels->name;
27
28 if ( 'post' != $post_type ) {
29         $parent_file = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
30         $submenu_file = "edit-tags.php?taxonomy=$taxonomy&amp;post_type=$post_type";
31 } else if ( 'link_category' == $tax->name ) {
32         $parent_file = 'link-manager.php';
33         $submenu_file = 'edit-tags.php?taxonomy=link_category';
34 } else {
35         $parent_file = 'edit.php';
36         $submenu_file = "edit-tags.php?taxonomy=$taxonomy";
37 }
38
39 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
40
41 $location = false;
42
43 switch ( $wp_list_table->current_action() ) {
44
45 case 'add-tag':
46
47         check_admin_referer( 'add-tag', '_wpnonce_add-tag' );
48
49         if ( !current_user_can( $tax->cap->edit_terms ) )
50                 wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
51
52         $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST );
53         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
54         if ( 'post' != $post_type )
55                 $location .= '&post_type=' . $post_type;
56
57         if ( $referer = wp_get_original_referer() ) {
58                 if ( false !== strpos( $referer, 'edit-tags.php' ) )
59                         $location = $referer;
60         }
61
62         if ( $ret && !is_wp_error( $ret ) )
63                 $location = add_query_arg( 'message', 1, $location );
64         else
65                 $location = add_query_arg( 'message', 4, $location );
66
67         break;
68
69 case 'delete':
70         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
71         if ( 'post' != $post_type )
72                 $location .= '&post_type=' . $post_type;
73         if ( $referer = wp_get_referer() ) {
74                 if ( false !== strpos( $referer, 'edit-tags.php' ) )
75                         $location = $referer;
76         }
77
78         if ( ! isset( $_REQUEST['tag_ID'] ) ) {
79                 break;
80         }
81
82         $tag_ID = (int) $_REQUEST['tag_ID'];
83         check_admin_referer( 'delete-tag_' . $tag_ID );
84
85         if ( !current_user_can( $tax->cap->delete_terms ) )
86                 wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
87
88         wp_delete_term( $tag_ID, $taxonomy );
89
90         $location = add_query_arg( 'message', 2, $location );
91
92         break;
93
94 case 'bulk-delete':
95         check_admin_referer( 'bulk-tags' );
96
97         if ( !current_user_can( $tax->cap->delete_terms ) )
98                 wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
99
100         $tags = (array) $_REQUEST['delete_tags'];
101         foreach ( $tags as $tag_ID ) {
102                 wp_delete_term( $tag_ID, $taxonomy );
103         }
104
105         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
106         if ( 'post' != $post_type )
107                 $location .= '&post_type=' . $post_type;
108         if ( $referer = wp_get_referer() ) {
109                 if ( false !== strpos( $referer, 'edit-tags.php' ) )
110                         $location = $referer;
111         }
112
113         $location = add_query_arg( 'message', 6, $location );
114
115         break;
116
117 case 'edit':
118         $title = $tax->labels->edit_item;
119
120         $tag_ID = (int) $_REQUEST['tag_ID'];
121
122         $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' );
123         if ( ! $tag )
124                 wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) );
125         require_once( ABSPATH . 'wp-admin/admin-header.php' );
126         include( ABSPATH . 'wp-admin/edit-tag-form.php' );
127         include( ABSPATH . 'wp-admin/admin-footer.php' );
128
129         exit;
130
131 case 'editedtag':
132         $tag_ID = (int) $_POST['tag_ID'];
133         check_admin_referer( 'update-tag_' . $tag_ID );
134
135         if ( !current_user_can( $tax->cap->edit_terms ) )
136                 wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
137
138         $tag = get_term( $tag_ID, $taxonomy );
139         if ( ! $tag )
140                 wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) );
141
142         $ret = wp_update_term( $tag_ID, $taxonomy, $_POST );
143
144         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
145         if ( 'post' != $post_type )
146                 $location .= '&post_type=' . $post_type;
147
148         if ( $referer = wp_get_original_referer() ) {
149                 if ( false !== strpos( $referer, 'edit-tags.php' ) )
150                         $location = $referer;
151         }
152
153         if ( $ret && !is_wp_error( $ret ) )
154                 $location = add_query_arg( 'message', 3, $location );
155         else
156                 $location = add_query_arg( 'message', 5, $location );
157         break;
158 }
159
160 if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) {
161         $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) );
162 }
163
164 if ( $location ) {
165         if ( ! empty( $_REQUEST['paged'] ) ) {
166                 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
167         }
168         wp_redirect( $location );
169         exit;
170 }
171
172 $wp_list_table->prepare_items();
173 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
174
175 if ( $pagenum > $total_pages && $total_pages > 0 ) {
176         wp_redirect( add_query_arg( 'paged', $total_pages ) );
177         exit;
178 }
179
180 wp_enqueue_script('admin-tags');
181 if ( current_user_can($tax->cap->edit_terms) )
182         wp_enqueue_script('inline-edit-tax');
183
184 if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy  ) {
185         $help ='';
186         if ( 'category' == $taxonomy )
187                 $help = '<p>' . sprintf(__( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ) , 'options-writing.php' ) . '</p>';
188         elseif ( 'link_category' == $taxonomy )
189                 $help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>';
190         else
191                 $help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>';
192
193         if ( 'link_category' == $taxonomy )
194                 $help .= '<p>' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '</p>';
195         else
196                 $help .='<p>' . __( 'What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '</p>';
197
198         get_current_screen()->add_help_tab( array(
199                 'id'      => 'overview',
200                 'title'   => __('Overview'),
201                 'content' => $help,
202         ) );
203
204         if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) {
205                 if ( 'category' == $taxonomy )
206                         $help = '<p>' . __( 'When adding a new category on this screen, you&#8217;ll fill in the following fields:' ) . '</p>';
207                 else
208                         $help = '<p>' . __( 'When adding a new tag on this screen, you&#8217;ll fill in the following fields:' ) . '</p>';
209
210                 $help .= '<ul>' .
211                 '<li>' . __( '<strong>Name</strong> - The name is how it appears on your site.' ) . '</li>';
212
213                 if ( ! global_terms_enabled() )
214                         $help .= '<li>' . __( '<strong>Slug</strong> - The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
215
216                 if ( 'category' == $taxonomy )
217                         $help .= '<li>' . __( '<strong>Parent</strong> - Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '</li>';
218
219                 $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
220                 '</ul>' .
221                 '<p>' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '</p>';
222
223                 get_current_screen()->add_help_tab( array(
224                         'id'      => 'adding-terms',
225                         'title'   => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
226                         'content' => $help,
227                 ) );
228         }
229
230         $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
231
232         if ( 'category' == $taxonomy )
233                 $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Posts_Categories_Screen" target="_blank">Documentation on Categories</a>' ) . '</p>';
234         elseif ( 'link_category' == $taxonomy )
235                 $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Links_Link_Categories_Screen" target="_blank">Documentation on Link Categories</a>' ) . '</p>';
236         else
237                 $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Posts_Tags_Screen" target="_blank">Documentation on Tags</a>' ) . '</p>';
238
239         $help .= '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
240
241         get_current_screen()->set_help_sidebar( $help );
242
243         unset( $help );
244 }
245
246 require_once( ABSPATH . 'wp-admin/admin-header.php' );
247
248 if ( !current_user_can($tax->cap->edit_terms) )
249         wp_die( __('You are not allowed to edit this item.') );
250
251 $messages = array();
252 $messages['_item'] = array(
253         0 => '', // Unused. Messages start at index 1.
254         1 => __( 'Item added.' ),
255         2 => __( 'Item deleted.' ),
256         3 => __( 'Item updated.' ),
257         4 => __( 'Item not added.' ),
258         5 => __( 'Item not updated.' ),
259         6 => __( 'Items deleted.' )
260 );
261 $messages['category'] = array(
262         0 => '', // Unused. Messages start at index 1.
263         1 => __( 'Category added.' ),
264         2 => __( 'Category deleted.' ),
265         3 => __( 'Category updated.' ),
266         4 => __( 'Category not added.' ),
267         5 => __( 'Category not updated.' ),
268         6 => __( 'Categories deleted.' )
269 );
270 $messages['post_tag'] = array(
271         0 => '', // Unused. Messages start at index 1.
272         1 => __( 'Tag added.' ),
273         2 => __( 'Tag deleted.' ),
274         3 => __( 'Tag updated.' ),
275         4 => __( 'Tag not added.' ),
276         5 => __( 'Tag not updated.' ),
277         6 => __( 'Tags deleted.' )
278 );
279
280 /**
281  * Filter the messages displayed when a tag is updated.
282  *
283  * @since 3.7.0
284  *
285  * @param array $messages The messages to be displayed.
286  */
287 $messages = apply_filters( 'term_updated_messages', $messages );
288
289 $message = false;
290 if ( isset( $_REQUEST['message'] ) && ( $msg = (int) $_REQUEST['message'] ) ) {
291         if ( isset( $messages[ $taxonomy ][ $msg ] ) )
292                 $message = $messages[ $taxonomy ][ $msg ];
293         elseif ( ! isset( $messages[ $taxonomy ] ) && isset( $messages['_item'][ $msg ] ) )
294                 $message = $messages['_item'][ $msg ];
295 }
296
297 ?>
298
299 <div class="wrap nosubsub">
300 <h2><?php echo esc_html( $title );
301 if ( !empty($_REQUEST['s']) )
302         printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
303 </h2>
304
305 <?php if ( $message ) : ?>
306 <div id="message" class="updated"><p><?php echo $message; ?></p></div>
307 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
308 endif; ?>
309 <div id="ajax-response"></div>
310
311 <form class="search-form" action="" method="get">
312 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
313 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
314
315 <?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?>
316
317 </form>
318 <br class="clear" />
319
320 <div id="col-container">
321
322 <div id="col-right">
323 <div class="col-wrap">
324 <form id="posts-filter" action="" method="post">
325 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
326 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
327
328 <?php $wp_list_table->display(); ?>
329
330 <br class="clear" />
331 </form>
332
333 <?php if ( 'category' == $taxonomy ) : ?>
334 <div class="form-wrap">
335 <p>
336         <?php
337         /** This filter is documented in wp-includes/category-template.php */
338         printf( __( '<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.' ), apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ) ) );
339         ?>
340 </p>
341 <?php if ( current_user_can( 'import' ) ) : ?>
342 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'import.php') ?></p>
343 <?php endif; ?>
344 </div>
345 <?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?>
346 <div class="form-wrap">
347 <p><?php printf(__('Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.'), 'import.php') ;?></p>
348 </div>
349 <?php endif;
350
351 /**
352  * Fires after the taxonomy list table.
353  *
354  * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
355  *
356  * @since 3.0.0
357  *
358  * @param string $taxonomy The taxonomy name.
359  */
360 do_action( "after-{$taxonomy}-table", $taxonomy );
361 ?>
362
363 </div>
364 </div><!-- /col-right -->
365
366 <div id="col-left">
367 <div class="col-wrap">
368
369 <?php
370
371 if ( !is_null( $tax->labels->popular_items ) ) {
372         if ( current_user_can( $tax->cap->edit_terms ) )
373                 $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'post_type' => $post_type, 'echo' => false, 'link' => 'edit' ) );
374         else
375                 $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) );
376
377         if ( $tag_cloud ) :
378         ?>
379 <div class="tagcloud">
380 <h3><?php echo $tax->labels->popular_items; ?></h3>
381 <?php echo $tag_cloud; unset( $tag_cloud ); ?>
382 </div>
383 <?php
384 endif;
385 }
386
387 if ( current_user_can($tax->cap->edit_terms) ) {
388         if ( 'category' == $taxonomy ) {
389                 /**
390                  * Fires before the Add Category form.
391                  *
392                  * @since 2.1.0
393                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
394                  *
395                  * @param object $arg Optional arguments cast to an object.
396                  */
397                 do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) );
398         } elseif ( 'link_category' == $taxonomy ) {
399                 /**
400                  * Fires before the link category form.
401                  *
402                  * @since 2.3.0
403                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
404                  *
405                  * @param object $arg Optional arguments cast to an object.
406                  */
407                 do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) );
408         } else {
409                 /**
410                  * Fires before the Add Tag form.
411                  *
412                  * @since 2.5.0
413                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
414                  *
415                  * @param string $taxonomy The taxonomy slug.
416                  */
417                 do_action( 'add_tag_form_pre', $taxonomy );
418         }
419
420         /**
421          * Fires before the Add Term form for all taxonomies.
422          *
423          * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
424          *
425          * @since 3.0.0
426          *
427          * @param string $taxonomy The taxonomy slug.
428          */
429         do_action( "{$taxonomy}_pre_add_form", $taxonomy );
430 ?>
431
432 <div class="form-wrap">
433 <h3><?php echo $tax->labels->add_new_item; ?></h3>
434 <form id="addtag" method="post" action="edit-tags.php" class="validate"
435 <?php
436 /**
437  * Fires at the beginning of the Add Tag form.
438  *
439  * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
440  *
441  * @since 3.7.0
442  */
443 do_action( "{$taxonomy}_term_new_form_tag" );
444 ?>>
445 <input type="hidden" name="action" value="add-tag" />
446 <input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" />
447 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
448 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
449 <?php wp_nonce_field('add-tag', '_wpnonce_add-tag'); ?>
450
451 <div class="form-field form-required term-name-wrap">
452         <label for="tag-name"><?php _ex( 'Name', 'term name' ); ?></label>
453         <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
454         <p><?php _e('The name is how it appears on your site.'); ?></p>
455 </div>
456 <?php if ( ! global_terms_enabled() ) : ?>
457 <div class="form-field term-slug-wrap">
458         <label for="tag-slug"><?php _e( 'Slug' ); ?></label>
459         <input name="slug" id="tag-slug" type="text" value="" size="40" />
460         <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
461 </div>
462 <?php endif; // global_terms_enabled() ?>
463 <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
464 <div class="form-field term-parent-wrap">
465         <label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label>
466         <?php
467         $dropdown_args = array(
468                 'hide_empty'       => 0,
469                 'hide_if_empty'    => false,
470                 'taxonomy'         => $taxonomy,
471                 'name'             => 'parent',
472                 'orderby'          => 'name',
473                 'hierarchical'     => true,
474                 'show_option_none' => __( 'None' ),
475         );
476
477         /**
478          * Filter the taxonomy parent drop-down on the Edit Term page.
479          *
480          * @since 3.7.0
481          *
482          * @param array  $dropdown_args {
483          *     An array of taxonomy parent drop-down arguments.
484          *
485          *     @type int|bool $hide_empty       Whether to hide terms not attached to any posts. Default 0|false.
486          *     @type bool     $hide_if_empty    Whether to hide the drop-down if no terms exist. Default false.
487          *     @type string   $taxonomy         The taxonomy slug.
488          *     @type string   $name             Value of the name attribute to use for the drop-down select element.
489          *                                      Default 'parent'.
490          *     @type string   $orderby          The field to order by. Default 'name'.
491          *     @type bool     $hierarchical     Whether the taxonomy is hierarchical. Default true.
492          *     @type string   $show_option_none Label to display if there are no terms. Default 'None'.
493          * }
494          * @param string $taxonomy The taxonomy slug.
495          */
496         $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy );
497         wp_dropdown_categories( $dropdown_args );
498         ?>
499         <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
500                 <p><?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>
501         <?php endif; ?>
502 </div>
503 <?php endif; // is_taxonomy_hierarchical() ?>
504 <div class="form-field term-description-wrap">
505         <label for="tag-description"><?php _e( 'Description' ); ?></label>
506         <textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
507         <p><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p>
508 </div>
509
510 <?php
511 if ( ! is_taxonomy_hierarchical( $taxonomy ) ) {
512         /**
513          * Fires after the Add Tag form fields for non-hierarchical taxonomies.
514          *
515          * @since 3.0.0
516          *
517          * @param string $taxonomy The taxonomy slug.
518          */
519         do_action( 'add_tag_form_fields', $taxonomy );
520 }
521
522 /**
523  * Fires after the Add Term form fields for hierarchical taxonomies.
524  *
525  * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
526  *
527  * @since 3.0.0
528  *
529  * @param string $taxonomy The taxonomy slug.
530  */
531 do_action( "{$taxonomy}_add_form_fields", $taxonomy );
532
533 submit_button( $tax->labels->add_new_item );
534
535 if ( 'category' == $taxonomy ) {
536         /**
537          * Fires at the end of the Edit Category form.
538          *
539          * @since 2.1.0
540          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
541          *
542          * @param object $arg Optional arguments cast to an object.
543          */
544         do_action( 'edit_category_form', (object) array( 'parent' => 0 ) );
545 } elseif ( 'link_category' == $taxonomy ) {
546         /**
547          * Fires at the end of the Edit Link form.
548          *
549          * @since 2.3.0
550          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
551          *
552          * @param object $arg Optional arguments cast to an object.
553          */
554         do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) );
555 } else {
556         /**
557          * Fires at the end of the Add Tag form.
558          *
559          * @since 2.7.0
560          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
561          *
562          * @param string $taxonomy The taxonomy slug.
563          */
564         do_action( 'add_tag_form', $taxonomy );
565 }
566
567 /**
568  * Fires at the end of the Add Term form for all taxonomies.
569  *
570  * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
571  *
572  * @since 3.0.0
573  *
574  * @param string $taxonomy The taxonomy slug.
575  */
576 do_action( "{$taxonomy}_add_form", $taxonomy );
577 ?>
578 </form></div>
579 <?php } ?>
580
581 </div>
582 </div><!-- /col-left -->
583
584 </div><!-- /col-container -->
585 </div><!-- /wrap -->
586
587 <?php if ( ! wp_is_mobile() ) : ?>
588 <script type="text/javascript">
589 try{document.forms.addtag['tag-name'].focus();}catch(e){}
590 </script>
591 <?php
592 endif;
593
594 $wp_list_table->inline_edit();
595
596 include( ABSPATH . 'wp-admin/admin-footer.php' );