diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 9ff264818a..e08087c67b 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -199,34 +199,38 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t else $help .='
' . __( '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.' ) . '
'; - if ( 'category' == $taxonomy ) - $help .= '' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '
'; - elseif ( 'post_tag' == $taxonomy ) - $help .= '' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '
'; - - if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) - - $help .= '' . __( '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.' ) . '
'; - get_current_screen()->add_help_tab( array( 'id' => 'help-overview', 'title' => __('Overview'), 'content' => $help, ) ); + if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) { + if ( 'category' == $taxonomy ) + $help = '' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '
'; + else + $help = '' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '
'; + + $help .= '' . __( '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.' ) . '
'; + + get_current_screen()->add_help_tab( array( + 'id' => 'adding-terms', + 'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ), + 'content' => $help, + ) ); + } + $help = '' . __( 'For more information:' ) . '
'; if ( 'category' == $taxonomy ) @@ -240,7 +244,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t get_current_screen()->set_help_sidebar( $help ); - unset($help); + unset( $help ); } require_once ('admin-header.php');