Make WordPress Core


Ignore:
Timestamp:
10/01/2011 12:24:44 AM (14 years ago)
Author:
koopersmith
Message:

Make screen options a help tab. Move screen option functions into WP_Screen. see #18690, #18785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r18823 r18853  
    165165    $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>';
    166166
    167     $current_screen->add_help_tab( 'customize-display', __('Customizing This Display'), $customize_display );
     167    $current_screen->add_help_tab( array(
     168        'id'      => 'customize-display',
     169        'title'   => __('Customizing This Display'),
     170        'content' => $customize_display,
     171    ) );
    168172
    169173    $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>';
    170174    $title_and_editor .= '<p>' . __('<strong>Post editor</strong> - Enter the text for your post. There are two modes of editing: Visual and HTML. 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 HTML mode allows you to enter raw HTML along with your post text. You can insert media files by clicking the icons above the post editor and following the directions. You can go the distraction-free writing screen, new in 3.2, via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in HTML 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>';
    171175
    172     $current_screen->add_help_tab( 'title-post-editor', __('Title and Post Editor'), $title_and_editor );
     176    $current_screen->add_help_tab( array(
     177        'id'      => 'title-post-editor',
     178        'title'   => __('Title and Post Editor'),
     179        'content' => $title_and_editor,
     180    ) );
    173181
    174182    $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>';
     
    182190    }
    183191
    184     $current_screen->add_help_tab( 'publish-box', __('Publish Box'), $publish_box );
     192    $current_screen->add_help_tab( array(
     193        'title'   => __('Publish Box'),
     194        'content' => $publish_box,
     195    ) );
    185196
    186197    $discussion_settings  = '<p>' . __('<strong>Send Trackbacks</strong> - Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. Enter the URL(s) you want to send trackbacks. If you link to other WordPress sites they&#8217;ll be notified automatically using pingbacks, and this field is unnecessary.') . '</p>';
    187198    $discussion_settings .= '<p>' . __('<strong>Discussion</strong> - You can turn comments and pings on or off, and if there are comments on the post, you can see them here and moderate them.') . '</p>';
    188199
    189     $current_screen->add_help_tab( 'discussion-settings', __('Discussion Settings'), $discussion_settings );
     200    $current_screen->add_help_tab( array(
     201        'title'   => __('Discussion Settings'),
     202        'content' => $discussion_settings,
     203    ) );
    190204
    191205    $current_screen->add_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.