Make WordPress Core

Ticket #22451: 22451-posts.diff

File 22451-posts.diff, 14.7 KB (added by DrewAPicture, 12 years ago)
  • wp-admin/edit-tags.php

     
    188188if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy  ) {
    189189        $help ='';
    190190        if ( 'category' == $taxonomy )
    191                 $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>';
     191                $help = '<p>' . sprintf(__( 'You can use <strong>categories</strong> 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>';
    192192        elseif ( 'link_category' == $taxonomy )
    193                 $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>';
     193                $help = '<p>' . __( 'You can create groups of links by using <strong>Link Categories</strong>. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>';
    194194        else
    195195                $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>';
    196196
     
    201201
    202202        get_current_screen()->add_help_tab( array(
    203203                'id'      => 'overview',
    204                 'title'   => __('Overview'),
     204                'title'   => __( 'Overview' ),
    205205                'content' => $help,
    206206        ) );
    207207
     
    218218                        $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>';
    219219
    220220                if ( 'category' == $taxonomy )
    221                         $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>';
     221                        $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>';
    222222
    223223                $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
    224224                '</ul>' .
  • wp-admin/edit-form-advanced.php

     
    173173add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
    174174
    175175if ( 'post' == $post_type ) {
    176         $customize_display = '<p>' . __('The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop, and can minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.') . '</p>';
     176        $customize_display = '<p>' . __( 'The Title field and the big Post Editor area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.' ) . '</p>';
    177177
    178178        get_current_screen()->add_help_tab( array(
    179179                'id'      => 'customize-display',
     
    181181                'content' => $customize_display,
    182182        ) );
    183183
    184         $title_and_editor  = '<p>' . __('<strong>Title</strong> - Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.') . '</p>';
    185         $title_and_editor .= '<p>' . __('<strong>Post editor</strong> - Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. The Text mode allows you to enter HTML along with your post text. Line breaks will be converted to paragraphs automatically. You can insert media files by clicking the icons above the post editor and following the directions. You can go to the distraction-free writing screen via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in Text mode (last in the row). Once there, you can make buttons visible by hovering over the top area. Exit Fullscreen back to the regular post editor.') . '</p>';
     184        $title_and_editor  = '<p>' . __( '<strong>Title</strong> - Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.' ) . '</p>';
     185        $title_and_editor .= '<p>' . __( '<strong>Post Editor</strong> - Enter the content for your post in this area. There are two modes of editing, Visual and Text mode, chosen by clicking on the appropriate tabs. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. Text mode allows you to enter HTML along with your post content. Line breaks will be converted to paragraphs automatically.' ) . '</p>';
     186        $title_and_editor .= '<p>' . __( '<strong>Distraction-Free Writing</strong> - You can visit the distraction-free writing screen via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in Text mode (last in the row). Once there, you can make buttons visible by hovering over the top area. Exit Fullscreen back to the regular Post Editor.' ) . '</p>';
    186187
    187188        get_current_screen()->add_help_tab( array(
    188189                'id'      => 'title-post-editor',
    189                 'title'   => __('Title and Post Editor'),
     190                'title'   => __( 'Title and Post Editor' ),
    190191                'content' => $title_and_editor,
    191192        ) );
    192193
    193         $publish_box = '<p>' . __('<strong>Publish</strong> - You can set the terms of publishing your post in the Publish box. For Status, Visibility, and Publish (immediately), click on the Edit link to reveal more options. Visibility includes options for password-protecting a post or making it stay at the top of your blog indefinitely (sticky). Publish (immediately) allows you to set a future or past date and time, so you can schedule a post to be published in the future or backdate a post.') . '</p>';
     194        $inserting_media = '<p>' . __( '<strong>Add Media</strong> - You can upload and insert media (images, galleries, audio, etc.) by clicking the Add Media button above the Post Editor and following the directions.' ) . '</p>';
     195        $inserting_media .= '<p>' . __( '<strong>Embed Media</strong> - Since 2.9, WordPress has supported embedding media via the oEmbed protocol. oEmbed allows you quickly and easily embed media just by copying and pasting a URL from an approved provider into the Post Editor. Please refer to the Codex for <a href="http://codex.wordpress.org/Embeds#oEmbed">a full list of supported providers</a>. You can also embed media from an external URL by clicking the Add Media button and navigating to the Embed From URL tab.' );
    194196
     197        get_current_screen()->add_help_tab( array(
     198                'id'            => 'inserting-media',
     199                'title'         => __( 'Inserting Media' ),
     200                'content'       => $inserting_media,
     201        ) );
     202
     203        $publish_box = '<p>' . __( 'Several boxes on this screen contain settings for how your content will be published, including:' ) . '</p>';
     204        $publish_box .= '<ul><li>' . __( '<strong>Publish</strong> - You can set the terms of publishing your post in the Publish box. For Status, Visibility, and Publish (immediately), click on the Edit link to reveal more options. Visibility includes options for password-protecting a post or making it stay at the top of your blog indefinitely (sticky). Publish (immediately) allows you to set a future or past date and time, so you can schedule a post to be published in the future or backdate a post.' ) . '</li>';
     205
    195206        if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
    196                 $publish_box .= '<p>' . __( '<strong>Post Format</strong> - This designates how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Please refer to the Codex for <a href="http://codex.wordpress.org/Post_Formats#Supported_Formats">descriptions of each post format</a>. Your theme could enable all or some of 10 possible formats.' ) . '</p>';
     207                $publish_box .= '<li>' . __( '<strong>Format</strong> - Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Please refer to the Codex for <a href="http://codex.wordpress.org/Post_Formats#Supported_Formats">descriptions of each post format</a>. Your theme could enable all or some of 10 possible formats.' ) . '</li>';
    197208        }
    198209
    199210        if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
    200                 $publish_box .= '<p>' . __('<strong>Featured Image</strong> - This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the featured image as a post thumbnail on the home page, a custom header, etc.') . '</p>';
     211                $publish_box .= '<li>' . __('<strong>Featured Image</strong> - This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the featured image as a post thumbnail on the home page, a custom header, etc.') . '</li>';
    201212        }
    202213
     214        $publish_box .= '</ul>';
     215       
    203216        get_current_screen()->add_help_tab( array(
    204                 'id'      => 'publish-box',
    205                 'title'   => __('Publish Box'),
     217                'id'      => 'publish-settings',
     218                'title'   => __( 'Publishing Settings' ),
    206219                'content' => $publish_box,
    207220        ) );
    208221
     
    231244                'content' => $about_pages,
    232245        ) );
    233246
     247        $adding_page_media = '<p>' . __( '<strong>Inserting Media</strong> - Just as with Posts, you can upload and insert media (images, galleries, audio, etc.) by clicking the Add Media button above the Page Editor and following the directions. You can also embed media via the oEmbed protocol. oEmbed allows you quickly and easily embed media just by copying and pasting a URL from an approved provider into the Page Editor. Please refer to the Codex for <a href="http://codex.wordpress.org/Embeds#oEmbed">a full list of supported providers</a>.' );
     248
     249        get_current_screen()->add_help_tab( array(
     250                'id'            => 'inserting-page-media',
     251                'title'         => __( 'Inserting Media' ),
     252                'content'       => $adding_page_media,
     253        ) );
     254
    234255        $page_attributes = '<p>' . __('<strong>Parent</strong> - You can arrange your pages in hierarchies. For example, you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how many levels you can nest pages.') . '</p>' .
    235256                '<p>' . __('<strong>Template</strong> - Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you&#8217;ll see them in this dropdown menu.') . '</p>' .
    236257                '<p>' . __('<strong>Order</strong> - Pages are usually ordered alphabetically, but you can choose your own order by entering a number (1 for first, etc.) in this field.') . '</p>';
    237258
    238259        get_current_screen()->add_help_tab( array(
    239260                'id' => 'page-attributes',
    240                 'title' => __('Page Attributes'),
     261                'title' => __( 'Page Attributes' ),
    241262                'content' => $page_attributes,
    242263        ) );
    243264
  • wp-admin/edit.php

     
    181181        ) );
    182182        get_current_screen()->add_help_tab( array(
    183183        'id'            => 'bulk-actions',
    184         'title'         => __('Bulk Actions'),
     184        'title'         => __( 'Bulk Actions' ),
    185185        'content'       =>
    186186                '<p>' . __('You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.') . '</p>' .
    187                                 '<p>' . __('When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '</p>'
     187                                '<p>' . __('When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the X next to its name in the Bulk Edit area that appears.') . '</p>'
    188188        ) );
    189189
    190190        get_current_screen()->set_help_sidebar(
     
    196196} elseif ( 'page' == $post_type ) {
    197197        get_current_screen()->add_help_tab( array(
    198198        'id'            => 'overview',
    199         'title'         => __('Overview'),
     199        'title'         => __( 'Overview' ),
    200200        'content'       =>
    201                 '<p>' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.') . '</p>'
     201                '<p>' . __( 'Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>'
    202202        ) );
    203203        get_current_screen()->add_help_tab( array(
    204204        'id'            => 'managing-pages',
    205205        'title'         => __('Managing Pages'),
    206206        'content'       =>
    207                 '<p>' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '</p>' .
     207                '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '</p>' .
    208208                '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.') . '</p>'
    209209        ) );
    210210