WordPress.org

Make WordPress Core

Changeset 19445


Ignore:
Timestamp:
11/24/11 00:21:39 (2 years ago)
Author:
ryan
Message:

Help tabs. Props chexee. see #19020

Location:
trunk/wp-admin
Files:
14 edited

Legend:

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

    r19119 r19445  
    112112add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) ); 
    113113 
    114 add_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>' . 
    115     '<p>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</p>' . 
    116     '<p>' . __( 'In the Author column, in addition to the author&#8217;s name, email address, and blog URL, the commenter&#8217;s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</p>' . 
    117     '<p>' . __( 'In the Comment column, above each comment it says &#8220;Submitted on,&#8221; followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. Hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' . 
    118     '<p>' . __( 'In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The &#8220;#&#8221; permalink symbol below leads to that post on your live site. The small bubble with the number in it shows how many comments that post has received. If the bubble is gray, you have moderated all comments for that post. If it is blue, there are pending comments. Clicking the bubble will filter the comments screen to show only comments on that post.' ) . '</p>' . 
    119     '<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link below to learn more.' ) . '</p>' 
    120 ); 
     114get_current_screen()->add_help_tab( array( 
     115'id'        => 'managing-comments', 
     116'title'     => __('Managing Comments'), 
     117'content'   =>  
     118    '<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>' 
     119) ); 
     120get_current_screen()->add_help_tab( array( 
     121'id'        => 'comments-table', 
     122'title'     => __('Comments Table'), 
     123'content'   =>  
     124    '<ul>' . 
     125        '<li>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</li>' . 
     126        '<li>' . __( 'In the <strong>Author</strong> column, in addition to the author&#8217;s name, email address, and blog URL, the commenter&#8217;s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</li>' . 
     127        '<li>' . __( 'In the <strong>Comment</strong> column, above each comment it says &#8220;Submitted on,&#8221; followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. Hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</li>' . 
     128        '<li>' . __( 'In the <strong>In Response To</strong> column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows how many comments that post has received. If the bubble is gray, you have moderated all comments for that post. If it is blue, there are pending comments. Clicking the bubble will filter the comments screen to show only comments on that post.' ) . '</li>' . 
     129        '<li>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</li>' . 
     130    '</ul>' 
     131) );  
    121132 
    122133get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/edit-tags.php

    r19253 r19445  
    191191        $help = '<p>' . sprintf(__( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ) , 'options-writing.php' ) . '</p>'; 
    192192    elseif ( 'link_category' == $taxonomy ) 
    193         $help = '<p>' . __( 'You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.' ) . '</p>'; 
    194     else 
    195         $help = '<p>' . __( 'You can assign keywords to your posts using Tags. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; 
     193        $help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>'; 
     194    else 
     195        $help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; 
    196196 
    197197    if ( 'link_category' == $taxonomy ) 
    198         $help .= '<p>' . __( 'You can delete link categories in the Bulk Action pulldown, but that action does not delete the links within the category. Instead, it moves them to the default link category.' ) . '</p>'; 
     198        $help .= '<p>' . __( 'You can delete Link Categories in the Bulk Action pulldown, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '</p>'; 
    199199    else 
    200200        $help .='<p>' . __( 'What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '</p>'; 
  • trunk/wp-admin/edit.php

    r19435 r19445  
    150150 
    151151if ( 'post' == $post_type ) { 
     152 
    152153    get_current_screen()->add_help_tab( array( 
    153154    'id'        => 'layout', 
     
    155156    'content'   =>  
    156157        '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' . 
    157             '<ul>' . 
     158        '<ul>' . 
    158159            '<li>' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '</li>' . 
    159160            '<li>' . __('You can filter the list of posts by post status using the text links in the upper left to show All, Published, Draft, or Trashed posts. The default view is to show all posts.') . '</li>' . 
    160161            '<li>' . __('You can view posts in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '</li>' . 
    161162            '<li>' . __('You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.') . '</li>' . 
    162             '</ul>' 
     163        '</ul>' 
    163164    ) ); 
    164165    get_current_screen()->add_help_tab( array( 
     
    168169        '<p>' . __('Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:') . '</p>' . 
    169170        '<ul>' . 
    170         '<li>' . __('<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' . 
    171         '<li>' . __('<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' . 
    172         '<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' . 
    173         '<li>' . __('<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' . 
     171            '<li>' . __('<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' . 
     172            '<li>' . __('<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' . 
     173            '<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' . 
     174            '<li>' . __('<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' . 
    174175        '</ul>'  
    175176    ) ); 
     
    186187    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    187188    ); 
     189     
    188190} elseif ( 'page' == $post_type ) { 
    189191    get_current_screen()->add_help_tab( array( 
     
    191193    'title'     => __('Overview'), 
    192194    'content'   =>   
    193         '<p>' . __('Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the &#8220;Parent&#8221; of the other, creating a group of Pages.') . '</p>' 
     195        '<p>' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.') . '</p>' 
    194196    ) ); 
    195197    get_current_screen()->add_help_tab( array( 
     
    197199    'title'     => __('Managing Pages'), 
    198200    'content'   =>       
    199         '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '</p>' . 
    200         '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a Page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple Pages at once.') . '</p>' 
     201        '<p>' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '</p>' . 
     202        '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.') . '</p>' 
    201203    ) ); 
    202204 
  • trunk/wp-admin/index.php

    r19119 r19445  
    3636 
    3737$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>'; 
    38 $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>'; 
     38$help_navigation .= '<p>' . __('Links in the Toolbar 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 
    4040get_current_screen()->add_help_tab( array( 
     
    5050 
    5151get_current_screen()->add_help_tab( array( 
    52         'id'      => 'help-layout', 
     52    'id'      => 'help-layout', 
    5353    'title'   => __('Layout'), 
    5454    'content' => $help_layout, 
     
    6666 
    6767get_current_screen()->add_help_tab( array( 
    68         'id'      => 'help-content', 
     68    'id'      => 'help-content', 
    6969    'title'   => __('Content'), 
    7070    'content' => $help_content, 
  • trunk/wp-admin/link-manager.php

    r19119 r19445  
    4141$this_file = $parent_file = 'link-manager.php'; 
    4242 
    43 add_contextual_help( $current_screen, 
     43get_current_screen()->add_help_tab( array( 
     44'id'        => 'overview', 
     45'title'     => __('Overview'), 
     46'content'   =>   
    4447    '<p>' . sprintf(__('You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.'), 'widgets.php') . '</p>' . 
    45     '<p>' . __('Links may be separated into categories; these are different than the categories used on your posts.') . '</p>' . 
    46     '<p>' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '</p>' . 
     48    '<p>' . __('Links may be separated into Link Categories; these are different than the categories used on your posts.') . '</p>' . 
     49    '<p>' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '</p>' 
     50) ); 
     51get_current_screen()->add_help_tab( array( 
     52'id'        => 'deleting-links', 
     53'title'     => __('Deleting Links'), 
     54'content'   =>  
    4755    '<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.') . '</p>' 
    48 ); 
     56) ); 
    4957 
    5058get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/media-upload.php

    r19435 r19445  
    6161    $title = __('Upload New Media'); 
    6262    $parent_file = 'upload.php'; 
    63  
    6463    get_current_screen()->add_help_tab( array( 
    6564    'id'        => 'adding-media', 
     
    7271    'title'     => __('Editing New Media'), 
    7372    'content'   => 
    74         '<p>' . __('There are two options for uploading files: <em>Select Files</em> will open the Flash-based uploader (multiple file upload allowed), or you can use the <em>Browser Uploader</em>. Clicking <em>Select Files</em> opens a navigation window showing you files in your operating system. Selecting <em>Open</em> after clicking on the file you want activates a progress bar on the uploader screen. Basic image editing is available after upload is complete. Make sure you click <em>Save</em> before leaving this screen.') . '</p>' 
     73        '<p>' . __('There are three options for uploading files:') .   
     74        '<ul>' . 
     75            '<li>' . __('<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.') . '</li>' . 
     76            '<li>' . __('<strong>Select Files</strong> will open the multi-file uploader, or you can use the <strong>Browser Uploader</strong>.') . '</li>' . 
     77            '<li>' . __('Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.') . '</li>' . 
     78        '</ul>' . 
     79        '<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>'   
    7580    ) ); 
    76  
    7781    get_current_screen()->set_help_sidebar( 
    7882        '<p><strong>' . __('For more information:') . '</strong></p>' . 
  • trunk/wp-admin/nav-menus.php

    r19119 r19445  
    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  
    452 add_contextual_help($current_screen, $help); 
     448get_current_screen()->add_help_tab( array( 
     449'id'        => 'overview', 
     450'title'     => __('Overview'), 
     451'content'   =>   
     452    '<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 Custom Menu widget to add menus to a sidebar.') . '</p>' 
     453) ); 
     454get_current_screen()->add_help_tab( array( 
     455'id'        => 'create-menus', 
     456'title'     => __('Create Menus'), 
     457'content'   =>   
     458    '<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>  
     459    <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>' 
     460) ); 
    453461 
    454462get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/plugin-editor.php

    r19122 r19445  
    111111    } 
    112112 
    113     add_contextual_help($current_screen, 
     113    get_current_screen()->add_help_tab( array( 
     114    'id'        => 'overview', 
     115    'title'     => __('Overview'), 
     116    'content'   =>       
    114117        '<p>' . __('You can use the editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.') . '</p>' . 
    115118        '<p>' . __('Choose a plugin to edit from the menu in the upper right and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don&#8217;t forget to save your changes (Update File) when you&#8217;re finished.') . '</p>' . 
     
    117120        '<p>' . __('If you want to make changes but don&#8217;t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.') . '</p>' . 
    118121        ( is_network_admin() ? '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>' : '' ) 
    119     ); 
     122    ) ); 
    120123 
    121124    get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/plugin-install.php

    r19122 r19445  
    3636do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information. 
    3737 
    38 add_contextual_help($current_screen, 
     38get_current_screen()->add_help_tab( array( 
     39'id'        => 'finding-plugins', 
     40'title'     => __('Finding Plugins'), 
     41'content'   =>  
    3942    '<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>' . 
    4043    '<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>' . 
     44    '<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>' 
     45) ); 
     46get_current_screen()->add_help_tab( array( 
     47'id'        => 'uploading-plugin', 
     48'title'     => __('Uploading Plugins'), 
     49'content'   =>  
    4250    '<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 ); 
     51) ); 
    4452 
    4553get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/plugins.php

    r19119 r19445  
    319319add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' ), 'default' => 999 ) ); 
    320320 
    321 add_contextual_help($current_screen, 
     321get_current_screen()->add_help_tab( array( 
     322'id'        => 'overview', 
     323'title'     => __('Overview'), 
     324'content'   =>  
    322325    '<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>' . 
     326    '<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>' 
     327) ); 
     328get_current_screen()->add_help_tab( array( 
     329'id'        => 'compatibility-problems', 
     330'title'     => __('Compatibility Problems'), 
     331'content'   =>  
    324332    '<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>' . 
    325333    '<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 ); 
     334) ); 
    327335 
    328336get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/theme-editor.php

    r19122 r19445  
    2121$parent_file = 'themes.php'; 
    2222 
    23 $help = '<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p>'; 
    24 $help .= '<p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p>'; 
    25 $help .= '<p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p>'; 
    26 $help .= '<p>' . __('After typing in your edits, click Update File.') . '</p>'; 
    27 $help .= '<p>' . __('<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.') . '</p>'; 
    28 $help .= '<p>' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="http://codex.wordpress.org/Child_Themes" target="_blank">child theme</a> instead.') . '</p>'; 
    29 if ( is_network_admin() ) 
    30     $help .= '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>'; 
    31  
    32 add_contextual_help($current_screen, $help); 
     23get_current_screen()->add_help_tab( array( 
     24'id'        => 'overview', 
     25'title'     => __('Overview'), 
     26'content'   =>  
     27    '<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p> 
     28    <p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p> 
     29    <p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p> 
     30    <p>' . __('After typing in your edits, click Update File.') . '</p> 
     31    <p>' . __('<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.') . '</p> 
     32    <p>' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="http://codex.wordpress.org/Child_Themes" target="_blank">child theme</a> instead.') . '</p>' . 
     33    ( is_network_admin() ? '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>' : '' ) 
     34) ); 
    3335 
    3436get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/update-core.php

    r19441 r19445  
    424424$parent_file = 'tools.php'; 
    425425 
    426 add_contextual_help($current_screen, 
     426get_current_screen()->add_help_tab( array( 
     427'id'        => 'overview', 
     428'title'     => __('Overview'), 
     429'content'   =>   
    427430    '<p>' . __('This screen lets you update to the latest version of WordPress as well as update your themes and plugins from the WordPress.org repository. When updates are available, the number of available updates will appear in a bubble on the left hand menu as a notification. It is very important to keep your WordPress installation up to date for security reasons, so when you see a number appear, make sure you take the time to update, which is an easy process.') . '</p>' . 
    428431    '<p>' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '</p>' . 
    429432    '<p>' . __('To update themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '</p>' 
    430 ); 
     433) ); 
    431434 
    432435get_current_screen()->set_help_sidebar( 
  • trunk/wp-admin/upload.php

    r19435 r19445  
    150150'title'     => __('Overview'), 
    151151'content'   =>   
    152     '<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>' . 
     152    '<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 Screen Options tab to customize the display of this screen.' ) . '</p>' . 
    153153    '<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>' 
    154154) ); 
    155155get_current_screen()->add_help_tab( array( 
    156 'id'        => 'hover-actions', 
    157 'title'     => __('Hover Actions'), 
     156'id'        => 'actions-links', 
     157'title'     => __('Action Links'), 
    158158'content'   => 
    159     '<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>' 
     159    '<p>' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). View will take you to the display page for that file.' ) . '</p>' 
    160160) ); 
    161161get_current_screen()->add_help_tab( array( 
     
    163163'title'     => __('Attach Media Files'), 
    164164'content'   => 
    165     '<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>' 
     165    '<p>' . __( 'If a media file has not been attached to any post, you will see that in the Attached To column, and can click on Attach File to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>' 
    166166) ); 
    167167 
  • trunk/wp-admin/widgets.php

    r19334 r19445  
    3636$parent_file = 'themes.php'; 
    3737 
    38 $help = ' 
    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> 
     38get_current_screen()->add_help_tab( array( 
     39'id'        => 'overview', 
     40'title'     => __('Overview'), 
     41'content'   =>   
     42    '<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> 
     43    <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>' 
     44) ); 
     45get_current_screen()->add_help_tab( array( 
     46'id'        => 'removing-reusing', 
     47'title'     => __('Removing and Reusing'), 
     48'content'   =>   
     49    '<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> 
    4250    <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 '; 
    46  
    47 add_contextual_help($current_screen, $help); 
     51    <p>' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '</p>' 
     52) ); 
     53get_current_screen()->add_help_tab( array( 
     54'id'        => 'missing-widgets', 
     55'title'     => __('Missing Widgets'), 
     56'content'   =>   
     57    '<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>'  
     58) ); 
    4859 
    4960get_current_screen()->set_help_sidebar( 
Note: See TracChangeset for help on using the changeset viewer.