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/index.php

    r18797 r18853  
    3333$help_overview = '<p>' . __('Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the top bar.') . '</p>';
    3434
    35 $current_screen->add_help_tab( 'overview', __('Overview'), $help_overview );
     35$current_screen->add_help_tab( array(
     36    'title'   => __('Overview'),
     37    'content' => $help_overview,
     38) );
    3639
    3740$help_navigation  = '<p>' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '</p>';
    3841$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>';
    3942
    40 $current_screen->add_help_tab( 'navigation', __('Navigation'), $help_navigation );
     43$current_screen->add_help_tab( array(
     44    'title'   => __('Navigation'),
     45    'content' => $help_navigation,
     46) );
    4147
    4248$help_layout  = '<p>' . __('You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.') . '</p>';
     
    4551$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>';
    4652
    47 $current_screen->add_help_tab( 'layout', __('Layout'), $help_layout );
     53$current_screen->add_help_tab( array(
     54    'title'   => __('Layout'),
     55    'content' => $help_layout,
     56) );
    4857
    4958$help_content  = '<p>' . __('The boxes on your Dashboard screen are:') . '</p>';
     
    5766$help_content .= '<p>' . __('<strong>Plugins</strong> - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '</p>';
    5867
    59 $current_screen->add_help_tab( 'content', __('Content'), $help_content );
     68$current_screen->add_help_tab( array(
     69    'title'   => __('Content'),
     70    'content' => $help_content,
     71) );
    6072
    6173$current_screen->add_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.