WordPress.org

Make WordPress Core

Ticket #15346: 15346-edit-tags.php.diff

File 15346-edit-tags.php.diff, 3.2 KB (added by zeo, 5 years ago)

Minor fix to edit-tags.php

  • wp-admin/edit-tags.php

     
    159159 
    160160if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy  ) { 
    161161        if ( 'category' == $taxonomy ) 
    162                 $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>'; 
    163         elseif ( 'link_category' == $taxonomy )  
    164                 $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>'; 
     162                $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>'; 
     163        elseif ( 'link_category' == $taxonomy ) 
     164                $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>'; 
    165165        else 
    166                 $help .= '<p>' . __( 'You can assign keywords to your posts using Post Tags. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; 
    167                  
    168         if ( 'link_category' == $taxonomy )  
     166                $help = '<p>' . __( 'You can assign keywords to your posts using Post Tags. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; 
     167 
     168        if ( 'link_category' == $taxonomy ) 
    169169                $help .= '<p>' . __( 'You can delete link categories in the Bulk Action pulldown, but that action does not delete the links within the category. Instead, it moves them to the default link category.' ) . '</p>'; 
    170170        else 
    171171                $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>'; 
    172172 
    173173        if ( 'category' == $taxonomy ) 
    174174                $help .= '<p>' . __( 'When adding a new category on this screen, you&#8217;ll fill in the following fields:' ) . '</p>'; 
    175         elseif ( 'post_tag' == $taxonomy )  
     175        elseif ( 'post_tag' == $taxonomy ) 
    176176                $help .= '<p>' . __( 'When adding a new tag on this screen, you&#8217;ll fill in the following fields:' ) . '</p>'; 
    177177 
    178178        if ( 'category' == $taxonomy || 'post_tag' == $taxonomy  ) 
    179179 
    180180                $help .= '<ul>' . 
    181181                '<li>' . __( '<strong>Name</strong> - The name is how it appears on your site.' ) . '</li>'; 
    182          
     182 
    183183        if ( ! global_terms_enabled()  ) 
    184184        if ( 'category' == $taxonomy || 'post_tag' == $taxonomy  ) 
    185185                $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>';