Make WordPress Core

Changeset 18864


Ignore:
Timestamp:
10/02/2011 06:59:36 AM (13 years ago)
Author:
azaozz
Message:

Add screen_options with contextual content, see #18690

Location:
trunk/wp-admin
Files:
20 edited

Legend:

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

    r18092 r18864  
    112112add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
    113113
     114$current_screen->add_screen_options(
     115'<p>test</p>'
     116);
     117
    114118add_contextual_help( $current_screen, '<p>' . __( 'You can manage comments made on your site similar to the way you manage Posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>' .
    115119    '<p>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</p>' .
  • trunk/wp-admin/edit-form-advanced.php

    r18853 r18864  
    162162$current_screen->add_option('layout_columns', array('max' => 2, 'default' => 'auto') );
    163163
     164$current_screen->add_screen_options(
     165'<p>test</p>'
     166);
     167
    164168if ( 'post' == $post_type ) {
    165169    $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>';
     
    168172        'id'      => 'customize-display',
    169173        'title'   => __('Customizing This Display'),
    170         'content' => $customize_display,
     174        'content' => $customize_display
    171175    ) );
    172176
  • trunk/wp-admin/edit-link-form.php

    r18736 r18864  
    4040add_screen_option('layout_columns', array('max' => 2, 'default' => 'auto') );
    4141
    42 add_contextual_help($current_screen,
    43     '<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
    44     '<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don&#8217;t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
    45     '<p>' . __( 'XFN stands for <a href="http://gmpg.org/xfn/" target="_blank">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>' .
    46     '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    47     '<p>' . __( '<a href="http://codex.wordpress.org/Links_Add_New_Screen" target="_blank">Documentation on Creating Links</a>' ) . '</p>' .
    48     '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
     42$current_screen->add_screen_options(
     43'<p>test</p>'
    4944);
     45
     46add_contextual_help( $current_screen, '
     47<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>
     48<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don&#8217;t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>
     49<p>' . __( 'XFN stands for <a href="http://gmpg.org/xfn/" target="_blank">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>
     50<p><strong>' . __( 'For more information:' ) . '</strong></p>
     51<p>' . __( '<a href="http://codex.wordpress.org/Links_Add_New_Screen" target="_blank">Documentation on Creating Links</a>' ) . '</p>
     52<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' );
    5053
    5154require_once ('admin-header.php');
  • trunk/wp-admin/edit-tags.php

    r18661 r18864  
    3131add_screen_option( 'per_page', array('label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') );
    3232
     33$current_screen->add_screen_options(
     34'<p>test</p>'
     35);
     36
    3337switch ( $wp_list_table->current_action() ) {
    3438
  • trunk/wp-admin/edit.php

    r18222 r18864  
    148148
    149149$title = $post_type_object->labels->name;
     150
     151add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
     152
     153$current_screen->add_screen_options(
     154'<p>test</p>'
     155);
    150156
    151157if ( 'post' == $post_type ) {
     
    181187}
    182188
    183 add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
    184 
    185189require_once('./admin-header.php');
    186190?>
  • trunk/wp-admin/includes/screen.php

    r18863 r18864  
    643643        if ( ! isset( $_wp_contextual_help ) )
    644644            $_wp_contextual_help = array();
     645
    645646        $_wp_contextual_help = apply_filters( 'contextual_help_list', $_wp_contextual_help, $this );
    646647
     
    652653                'title'   => __('Screen Info'),
    653654                'content' => $contextual_help,
    654             ) );
    655         }
    656 
    657         // Add screen options tab
    658         if ( $this->show_screen_options() ) {
    659             $this->add_help_tab( array(
    660                 'title'    => __('Screen Options'),
    661                 'callback' => array( $this, 'render_screen_options' ),
    662655            ) );
    663656        }
     
    713706    }
    714707
    715     public function show_screen_options() {
     708    public function show_screen_options() { // not needed?
    716709        global $wp_meta_boxes, $wp_list_table;
    717710
     
    747740    }
    748741
     742    public function add_screen_options($before = '') {
     743        $this->add_help_tab( array(
     744            'title'    => __('Screen Options'),
     745            'id'       => 'screen-options',
     746            'callback' => array( $this, 'render_screen_options' ),
     747            'content'  => $before
     748        ));
     749    }
     750
    749751    /**
    750752     * Render the screen options tab.
     
    757759        $columns = get_column_headers( $this );
    758760        $hidden  = get_hidden_columns( $this );
     761        $this->_screen_settings = apply_filters( 'screen_settings', '', $this );
     762
     763        switch ( $this->id ) {
     764            case 'widgets':
     765                $this->_screen_settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n";
     766                break;
     767        }
    759768
    760769        ?>
  • trunk/wp-admin/index.php

    r18853 r18864  
    2828    add_screen_option('layout_columns', array('max' => 4, 'default' => 'auto') );
    2929
     30$current_screen->add_screen_options(
     31'<p>test</p>'
     32);
    3033
    3134// Help tabs
  • trunk/wp-admin/link-manager.php

    r17872 r18864  
    4040$title = __('Links');
    4141$this_file = $parent_file = 'link-manager.php';
     42
     43$current_screen->add_screen_options(
     44'<p>test</p>'
     45);
    4246
    4347add_contextual_help( $current_screen,
  • trunk/wp-admin/nav-menus.php

    r18577 r18864  
    446446    $messages[] = '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the &#8220;Custom Menu&#8221; widget to add any menus you create here to the theme&#8217;s sidebar.') . '</p></div>';
    447447
    448 $help =  '<p>' . __('This feature allows you to use a custom menu in place of your theme&#8217;s default menus. If your theme does not support the custom menus feature yet (the new and old default themes, Twenty Eleven and Twenty Ten, do), you can learn about adding this support by following the Documentation link in this tab. You can still use the &#8220;Custom Menu&#8221; widget to add menus to a sidebar.') . '</p>';
    449 $help .= '<p>' . __('You can create custom menus for your site. These menus may contain links to pages, categories, custom links or other content types (use the Screen Options tab to decide which ones to show on the screen). You can specify a different navigation label for a menu item as well as other attributes. You can create multiple menus. If your theme includes more than one menu, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '</p>';
    450 $help .= '<p>' . __('To create a new custom menu, click on the + tab, give the menu a name, and click Create Menu. Next, add menu items from the appropriate boxes. You&#8217;ll be able to edit the information for each menu item, and can drag and drop to put them in order. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. Drop the item into its new nested placement when the dotted rectangle target shifts over, also a little to the right. Don&#8217;t forget to click Save when you&#8217;re finished.') . '</p>';
    451 $help .= '<p><strong>' . __('For more information:') . '</strong></p>';
    452 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>';
    453 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    454 
    455 add_contextual_help($current_screen, $help);
     448$current_screen->add_screen_options(
     449'<p>test</p>'
     450);
     451
     452add_contextual_help( $current_screen, '
     453<p>' . __('This feature allows you to use a custom menu in place of your theme&#8217;s default menus. If your theme does not support the custom menus feature yet (the new and old default themes, Twenty Eleven and Twenty Ten, do), you can learn about adding this support by following the Documentation link in this tab. You can still use the &#8220;Custom Menu&#8221; widget to add menus to a sidebar.') . '</p>
     454<p>' . __('You can create custom menus for your site. These menus may contain links to pages, categories, custom links or other content types (use the Screen Options tab to decide which ones to show on the screen). You can specify a different navigation label for a menu item as well as other attributes. You can create multiple menus. If your theme includes more than one menu, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '</p>
     455<p>' . __('To create a new custom menu, click on the + tab, give the menu a name, and click Create Menu. Next, add menu items from the appropriate boxes. You&#8217;ll be able to edit the information for each menu item, and can drag and drop to put them in order. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. Drop the item into its new nested placement when the dotted rectangle target shifts over, also a little to the right. Don&#8217;t forget to click Save when you&#8217;re finished.') . '</p>
     456<p><strong>' . __('For more information:') . '</strong></p>
     457<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>
     458<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' );
    456459
    457460// Get the admin header
  • trunk/wp-admin/network/index.php

    r18736 r18864  
    4141add_screen_option('layout_columns', array('max' => 4, 'default' => 'auto') );
    4242
     43$current_screen->add_screen_options(
     44'<p>test</p>'
     45);
     46
    4347require_once( '../admin-header.php' );
    4448
  • trunk/wp-admin/network/site-themes.php

    r18129 r18864  
    125125add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) );
    126126
     127$current_screen->add_screen_options(
     128'<p>test</p>'
     129);
     130
    127131$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    128132$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
  • trunk/wp-admin/network/site-users.php

    r18565 r18864  
    156156add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) );
    157157
     158$current_screen->add_screen_options(
     159'<p>test</p>'
     160);
     161
    158162$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    159163$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
  • trunk/wp-admin/network/sites.php

    r18562 r18864  
    2424
    2525add_screen_option( 'per_page', array('label' => _x( 'Sites', 'sites per page (screen options)' )) );
     26
     27$current_screen->add_screen_options(
     28'<p>test</p>'
     29);
    2630
    2731add_contextual_help($current_screen,
  • trunk/wp-admin/network/themes.php

    r18569 r18864  
    176176add_screen_option( 'per_page', array('label' => _x( 'Themes', 'themes per page (screen options)' )) );
    177177
     178$current_screen->add_screen_options(
     179'<p>test</p>'
     180);
     181
    178182add_contextual_help($current_screen,
    179183    '<p>' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '</p>' .
  • trunk/wp-admin/network/users.php

    r18562 r18864  
    230230add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) );
    231231
     232$current_screen->add_screen_options(
     233'<p>test</p>'
     234);
     235
    232236add_contextual_help($current_screen,
    233237    '<p>' . __('This table shows all users across the network and the sites to which they are assigned.') . '</p>' .
  • trunk/wp-admin/plugin-install.php

    r18577 r18864  
    3636do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information.
    3737
    38 add_contextual_help($current_screen,
    39     '<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from WordPress core by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '</p>' .
    40     '<p>' . __('If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting a popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' .
    41     '<p>' . __('If you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, Newest, and Recently Updated plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>' .
    42     '<p>' . __('If you want to install a plugin that you&#8217;ve downloaded elsewhere, click Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>' .
    43     '<p><strong>' . __('For more information:') . '</strong></p>' .
    44     '<p>' . __('<a href="http://codex.wordpress.org/Plugins_Add_New_Screen" target="_blank">Documentation on Installing Plugins</a>') . '</p>' .
    45     '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     38$current_screen->add_screen_options(
     39'<p>test</p>'
    4640);
     41
     42add_contextual_help( $current_screen, '
     43<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from WordPress core by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '</p>
     44<p>' . __('If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting a popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>
     45<p>' . __('If you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, Newest, and Recently Updated plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>
     46<p>' . __('If you want to install a plugin that you&#8217;ve downloaded elsewhere, click Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>
     47<p><strong>' . __('For more information:') . '</strong></p>
     48<p>' . __('<a href="http://codex.wordpress.org/Plugins_Add_New_Screen" target="_blank">Documentation on Installing Plugins</a>') . '</p>
     49<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' );
    4750
    4851include(ABSPATH . 'wp-admin/admin-header.php');
  • trunk/wp-admin/plugins.php

    r18452 r18864  
    319319add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' )) );
    320320
    321 add_contextual_help($current_screen,
    322     '<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>' .
    323     '<p>' . sprintf(__('You can find additional plugins for your site by using the <a href="%1$s">Plugin Browser/Installer</a> functionality or by browsing the <a href="%2$s" target="_blank">WordPress Plugin Directory</a> directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your <code>/wp-content/plugins</code> directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '</p>' .
    324     '<p>' . __('Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.') . '</p>' .
    325     '<p>' . sprintf( __('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '</p>' .
    326     '<p><strong>' . __('For more information:') . '</strong></p>' .
    327     '<p>' . __('<a href="http://codex.wordpress.org/Managing_Plugins#Plugin_Management" target="_blank">Documentation on Managing Plugins</a>') . '</p>' .
    328     '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     321$current_screen->add_screen_options(
     322'<p>test</p>'
    329323);
     324
     325add_contextual_help( $current_screen, '
     326<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>
     327<p>' . sprintf(__('You can find additional plugins for your site by using the <a href="%1$s">Plugin Browser/Installer</a> functionality or by browsing the <a href="%2$s" target="_blank">WordPress Plugin Directory</a> directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your <code>/wp-content/plugins</code> directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '</p>
     328<p>' . __('Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.') . '</p>
     329<p>' . sprintf( __('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '</p>
     330<p><strong>' . __('For more information:') . '</strong></p>
     331<p>' . __('<a href="http://codex.wordpress.org/Managing_Plugins#Plugin_Management" target="_blank">Documentation on Managing Plugins</a>') . '</p>
     332<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' );
    330333
    331334$title = __('Plugins');
  • trunk/wp-admin/upload.php

    r18550 r18864  
    140140add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) );
    141141
    142 add_contextual_help( $current_screen,
    143     '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the <em>Screen Options</em> tab to customize the display of this screen.' ) . '</p>' .
    144     '<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>' .
    145     '<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>' .
    146     '<p>' . __( 'If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>' .
    147     '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    148     '<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a>' ) . '</p>' .
    149     '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
     142$current_screen->add_screen_options(
     143'<p>test</p>'
    150144);
     145
     146add_contextual_help( $current_screen, '
     147<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the <em>Screen Options</em> tab to customize the display of this screen.' ) . '</p>
     148<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>
     149<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>
     150<p>' . __( 'If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>
     151<p><strong>' . __( 'For more information:' ) . '</strong></p>
     152<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a>' ) . '</p>
     153<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' );
    151154
    152155require_once('./admin-header.php');
  • trunk/wp-admin/users.php

    r18504 r18864  
    2020add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) );
    2121
    22 // contextual help - choose Help on the top right of admin panel to preview this.
    23 add_contextual_help($current_screen,
    24     '<p>' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.') . '</p>' .
    25     '<p>' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '</p>' .
    26     '<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '</p>' .
    27     '<p><strong>' . __('For more information:') . '</strong></p>' .
    28     '<p>' . __('<a href="http://codex.wordpress.org/Users_Screen" target="_blank">Documentation on Managing Users</a>') . '</p>' .
    29     '<p>' . __('<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Descriptions of Roles and Capabilities</a>') . '</p>' .
    30     '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     22$current_screen->add_screen_options(
     23'<p>test</p>'
    3124);
     25
     26add_contextual_help( $current_screen, '
     27<p>' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.') . '</p>
     28<p>' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '</p>
     29<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '</p>
     30<p><strong>' . __('For more information:') . '</strong></p>
     31<p>' . __('<a href="http://codex.wordpress.org/Users_Screen" target="_blank">Documentation on Managing Users</a>') . '</p>
     32<p>' . __('<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Descriptions of Roles and Capabilities</a>') . '</p>
     33<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' );
    3234
    3335if ( empty($_REQUEST) ) {
  • trunk/wp-admin/widgets.php

    r18631 r18864  
    3232$parent_file = 'themes.php';
    3333
    34 $help = '
    35     <p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p>
    36     <p>' . __('The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.') . '</p>
    37     <p>' . __('If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.') . '</p>
    38     <p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it&#8217;s not required.') . '</p>
    39     <p>' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '</p>
    40     <p>' . __('Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.') . '</p>
    41 ';
    42 $help .= '<p><strong>' . __('For more information:') . '</strong></p>';
    43 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_Screen" target="_blank">Documentation on Widgets</a>') . '</p>';
    44 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    45 add_contextual_help($current_screen, $help);
     34$current_screen->add_screen_options(
     35'<p>test</p>'
     36);
     37
     38add_contextual_help( $current_screen, '
     39<p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p>
     40<p>' . __('The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.') . '</p>
     41<p>' . __('If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.') . '</p>
     42<p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it&#8217;s not required.') . '</p>
     43<p>' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '</p>
     44<p>' . __('Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.') . '</p>
     45<p><strong>' . __('For more information:') . '</strong></p>
     46<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_Screen" target="_blank">Documentation on Widgets</a>') . '</p>
     47<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' );
    4648
    4749// These are the widgets grouped by sidebar
Note: See TracChangeset for help on using the changeset viewer.