Make WordPress Core

Changeset 19110


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

Location:
trunk/wp-admin
Files:
2 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>' .
  • trunk/wp-admin/index.php

    r19014 r19110  
    3838$help_navigation .= '<p>' . __('Links in the &#8220;admin bar&#8221; at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '</p>';
    3939
    40 $current_screen->add_help_tab( array(
     40get_current_screen()->add_help_tab( array(
    4141        'id'      => 'help-navigation',
    4242    'title'   => __('Navigation'),
     
    4949$help_layout .= '<p>' . __('<strong>Box Controls</strong> - Click the title bar of the box to expand or collapse it. In addition, some box have configurable content, and will show a &#8220;Configure&#8221; link in the title bar if you hover over it.') . '</p>';
    5050
    51 $current_screen->add_help_tab( array(
     51get_current_screen()->add_help_tab( array(
    5252        'id'      => 'help-layout',
    5353    'title'   => __('Layout'),
     
    6565$help_content .= '<p>' . __('<strong>Plugins</strong> - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '</p>';
    6666
    67 $current_screen->add_help_tab( array(
     67get_current_screen()->add_help_tab( array(
    6868        'id'      => 'help-content',
    6969    'title'   => __('Content'),
     
    7171) );
    7272
    73 $current_screen->add_help_sidebar(
     73get_current_screen()->add_help_sidebar(
    7474    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    7575    '<p>' . __( '<a href="http://codex.wordpress.org/Dashboard_Screen" target="_blank">Documentation on Dashboard</a>' ) . '</p>' .
Note: See TracChangeset for help on using the changeset viewer.