+ if ( 'link_category' == $taxonomy )
+ $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>';
+ else
+ $help .='<p>' . __( 'What’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>';
+
+ get_current_screen()->add_help_tab( array(
+ 'id' => 'overview',
+ 'title' => __('Overview'),
+ 'content' => $help,
+ ) );
+
+ if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) {
+ if ( 'category' == $taxonomy )
+ $help = '<p>' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '</p>';
+ else
+ $help = '<p>' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '</p>';
+
+ $help .= '<ul>' .
+ '<li>' . __( '<strong>Name</strong> - The name is how it appears on your site.' ) . '</li>';
+
+ if ( ! global_terms_enabled() )
+ $help .= '<li>' . __( '<strong>Slug</strong> - The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
+
+ if ( 'category' == $taxonomy )
+ $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>';
+
+ $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
+ '</ul>' .
+ '<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>';
+
+ get_current_screen()->add_help_tab( array(
+ 'id' => 'adding-terms',
+ 'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
+ 'content' => $help,
+ ) );
+ }
+
+ $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
+
+ if ( 'category' == $taxonomy )
+ $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Posts_Categories_Screen" target="_blank">Documentation on Categories</a>' ) . '</p>';
+ elseif ( 'link_category' == $taxonomy )
+ $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Links_Link_Categories_Screen" target="_blank">Documentation on Link Categories</a>' ) . '</p>';
+ else
+ $help .= '<p>' . __( '<a href="http://codex.wordpress.org/Posts_Tags_Screen" target="_blank">Documentation on Tags</a>' ) . '</p>';
+
+ $help .= '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
+
+ get_current_screen()->set_help_sidebar( $help );
+
+ unset( $help );
+}
+
+require_once( ABSPATH . 'wp-admin/admin-header.php' );
+
+if ( !current_user_can($tax->cap->edit_terms) )
+ wp_die( __('You are not allowed to edit this item.') );
+
+$messages = array();
+$messages['_item'] = array(
+ 0 => '', // Unused. Messages start at index 1.
+ 1 => __( 'Item added.' ),
+ 2 => __( 'Item deleted.' ),
+ 3 => __( 'Item updated.' ),
+ 4 => __( 'Item not added.' ),
+ 5 => __( 'Item not updated.' ),
+ 6 => __( 'Items deleted.' )
+);
+$messages['category'] = array(
+ 0 => '', // Unused. Messages start at index 1.
+ 1 => __( 'Category added.' ),
+ 2 => __( 'Category deleted.' ),
+ 3 => __( 'Category updated.' ),
+ 4 => __( 'Category not added.' ),
+ 5 => __( 'Category not updated.' ),
+ 6 => __( 'Categories deleted.' )
+);
+$messages['post_tag'] = array(
+ 0 => '', // Unused. Messages start at index 1.
+ 1 => __( 'Tag added.' ),
+ 2 => __( 'Tag deleted.' ),
+ 3 => __( 'Tag updated.' ),
+ 4 => __( 'Tag not added.' ),
+ 5 => __( 'Tag not updated.' ),
+ 6 => __( 'Tags deleted.' )
+);
+
+/**
+ * Filter the messages displayed when a tag is updated.
+ *
+ * @since 3.7.0
+ *
+ * @param array $messages The messages to be displayed.
+ */
+$messages = apply_filters( 'term_updated_messages', $messages );
+
+$message = false;
+if ( isset( $_REQUEST['message'] ) && ( $msg = (int) $_REQUEST['message'] ) ) {
+ if ( isset( $messages[ $taxonomy ][ $msg ] ) )
+ $message = $messages[ $taxonomy ][ $msg ];
+ elseif ( ! isset( $messages[ $taxonomy ] ) && isset( $messages['_item'][ $msg ] ) )
+ $message = $messages['_item'][ $msg ];
+}
+
+?>