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