Changeset 14913
- Timestamp:
- 05/25/2010 11:49:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r14853 r14913 164 164 if ( current_user_can($tax->cap->edit_terms) ) 165 165 wp_enqueue_script('inline-edit-tax'); 166 167 if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) { 168 if ( 'category' == $taxonomy ) 169 $help = '<p>' . sprintf(__('You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your <a href="%s">writing settings</a>.'), 'options-writing.php') . '</p>'; 170 else 171 $help = '<p>' . __('You can assign keywords to your posts using Post Tags. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.') . '</p>'; 172 173 $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>'; 174 175 if ( 'category' == $taxonomy ) 176 $help .= '<p>' . __('When adding a new category on this screen, you’ll fill in the following fields:') . '</p>'; 177 else 178 $help .= '<p>' . __('When adding a new tag on this screen, you’ll fill in the following fields:') . '</p>'; 179 180 $help .= '<ul>' . 181 '<li>' . __('<strong>Name</strong> - The name is how it appears on your site.') . '</li>' . 182 '<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>'; 183 184 if ( 'category' == $taxonomy ) 185 $help .= '<li>' . __('<strong>Parent</strong> - 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. To create a subcategory, just choose another category from the Parent dropdown.') . '</li>'; 186 187 $help .= '<li>' . __('<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.') . '</li>' . 188 '</ul>' . 189 '<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>' . 190 '<p>' . __('For more information:') . '</p>'; 191 192 if ( 'category' == $taxonomy ) 193 $help .= '<p>' . sprintf(__('<a href="%s">Categories Documentation</a>'), 'http://codex.wordpress.org/Manage_Categories_SubPanel') . '</p>'; 194 else 195 $help .= '<p>' . sprintf(__('<a href="%s">Tags Documentation</a>'), 'http://codex.wordpress.org/Post_Tags_SubPanel') . '</p>'; 196 197 $help .= '<p>' . sprintf(__('<a href="%s">Support Forums</a>'), 'http://wordpress.org/support/') . '</p>'; 198 199 add_contextual_help($current_screen, $help); 200 unset($help); 201 } 166 202 167 203 require_once ('admin-header.php');
Note: See TracChangeset
for help on using the changeset viewer.