Make WordPress Core


Ignore:
Timestamp:
11/02/2011 02:38:37 AM (14 years ago)
Author:
ryan
Message:

Chain off of get_current_screen() instead of using global. see #19020

File:
1 edited

Legend:

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

    r19054 r19110  
    164164    $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>';
    165165
    166     $current_screen->add_help_tab( array(
     166    get_current_screen()->add_help_tab( array(
    167167        'id'      => 'customize-display',
    168168        'title'   => __('Customizing This Display'),
     
    173173    $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>';
    174174
    175     $current_screen->add_help_tab( array(
     175    get_current_screen()->add_help_tab( array(
    176176        'id'      => 'title-post-editor',
    177177        'title'   => __('Title and Post Editor'),
     
    189189    }
    190190
    191     $current_screen->add_help_tab( array(
     191    get_current_screen()->add_help_tab( array(
    192192        'id'      => 'publish-box',
    193193        'title'   => __('Publish Box'),
     
    198198    $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>';
    199199
    200     $current_screen->add_help_tab( array(
     200    get_current_screen()->add_help_tab( array(
    201201        'id'      => 'discussion-settings',
    202202        'title'   => __('Discussion Settings'),
     
    204204    ) );
    205205
    206     $current_screen->add_help_sidebar(
     206    get_current_screen()->add_help_sidebar(
    207207            '<p>' . sprintf(__('You can also create posts with the <a href="%s">Press This bookmarklet</a>.'), 'options-writing.php') . '</p>' .
    208208            '<p><strong>' . __('For more information:') . '</strong></p>' .
     
    214214        '<p>' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the new in 3.2 distraction-free writing space, available in both the Visual and HTML modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box:') . '</p>';
    215215
    216     $current_screen->add_help_tab( array(
     216    get_current_screen()->add_help_tab( array(
    217217        'id'      => 'about-pages',
    218218        'title'   => __('About Pages'),
     
    224224        '<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>';
    225225
    226     $current_screen->add_help_tab( array(
     226    get_current_screen()->add_help_tab( array(
    227227        'id' => 'page-attributes',
    228228        'title' => __('Page Attributes'),
     
    230230    ) );
    231231
    232     $current_screen->add_help_sidebar(
     232    get_current_screen()->add_help_sidebar(
    233233            '<p><strong>' . __('For more information:') . '</strong></p>' .
    234234            '<p>' . __('<a href="http://codex.wordpress.org/Pages_Add_New_Screen" target="_blank">Documentation on Adding New Pages</a>') . '</p>' .
Note: See TracChangeset for help on using the changeset viewer.