From 4ae081395321aba3d38063327d03dd215996f90f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 24 Nov 2011 00:21:39 +0000 Subject: [PATCH] Help tabs. Props chexee. see #19020 git-svn-id: https://develop.svn.wordpress.org/trunk@19445 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 25 ++++++++++++++++++------- wp-admin/edit-tags.php | 6 +++--- wp-admin/edit.php | 20 +++++++++++--------- wp-admin/index.php | 6 +++--- wp-admin/link-manager.php | 16 ++++++++++++---- wp-admin/media-upload.php | 10 +++++++--- wp-admin/nav-menus.php | 18 +++++++++++++----- wp-admin/plugin-editor.php | 7 +++++-- wp-admin/plugin-install.php | 14 +++++++++++--- wp-admin/plugins.php | 14 +++++++++++--- wp-admin/theme-editor.php | 22 ++++++++++++---------- wp-admin/update-core.php | 7 +++++-- wp-admin/upload.php | 10 +++++----- wp-admin/widgets.php | 29 ++++++++++++++++++++--------- 14 files changed, 136 insertions(+), 68 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index b05cd38bf8..ec0b020c03 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -111,13 +111,24 @@ else add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) ); -add_contextual_help( $current_screen, '

' . __( '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.' ) . '

' . - '

' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '

' . - '

' . __( 'In the Author column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '

' . - '

' . __( 'In the Comment column, above each comment it says “Submitted on,” 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.' ) . '

' . - '

' . __( '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 “#” 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.' ) . '

' . - '

' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link below to learn more.' ) . '

' -); +get_current_screen()->add_help_tab( array( +'id' => 'managing-comments', +'title' => __('Managing Comments'), +'content' => + '

' . __( '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.' ) . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'comments-table', +'title' => __('Comments Table'), +'content' => + '' +) ); get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index f14f6330a7..5c12429d89 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -190,12 +190,12 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t if ( 'category' == $taxonomy ) $help = '

' . sprintf(__( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ) , 'options-writing.php' ) . '

'; elseif ( 'link_category' == $taxonomy ) - $help = '

' . __( '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.' ) . '

'; + $help = '

' . __( '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.' ) . '

'; else - $help = '

' . __( 'You can assign keywords to your posts using Tags. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.' ) . '

'; + $help = '

' . __( 'You can assign keywords to your posts using tags. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.' ) . '

'; if ( 'link_category' == $taxonomy ) - $help .= '

' . __( '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.' ) . '

'; + $help .= '

' . __( '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.' ) . '

'; else $help .='

' . __( 'What’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.' ) . '

'; diff --git a/wp-admin/edit.php b/wp-admin/edit.php index a7342b41de..f5237e3542 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -149,17 +149,18 @@ wp_enqueue_script('inline-edit-post'); $title = $post_type_object->labels->name; if ( 'post' == $post_type ) { + get_current_screen()->add_help_tab( array( 'id' => 'layout', 'title' => __('Layout'), 'content' => '

' . __('You can customize the display of this screen in a number of ways:') . '

' . - '' ) ); get_current_screen()->add_help_tab( array( 'id' => 'action-links', @@ -167,10 +168,10 @@ if ( 'post' == $post_type ) { 'content' => '

' . __('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:') . '

' . '' ) ); get_current_screen()->add_help_tab( array( @@ -185,19 +186,20 @@ if ( 'post' == $post_type ) { '

' . __('Documentation on Managing Posts') . '

' . '

' . __('Support Forums') . '

' ); + } elseif ( 'page' == $post_type ) { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'), 'content' => - '

' . __('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 “Parent” of the other, creating a group of Pages.') . '

' + '

' . __('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 “Parent” of the other, creating a group of pages.') . '

' ) ); get_current_screen()->add_help_tab( array( 'id' => 'managing-pages', 'title' => __('Managing Pages'), 'content' => - '

' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '

' . - '

' . __('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.') . '

' + '

' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '

' . + '

' . __('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.') . '

' ) ); get_current_screen()->set_help_sidebar( diff --git a/wp-admin/index.php b/wp-admin/index.php index 8939e16853..a608a7773c 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -35,7 +35,7 @@ add_screen_option( 'overview', $overview ); // Help tabs $help_navigation = '

' . __('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.') . '

'; -$help_navigation .= '

' . __('Links in the “admin bar” 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.') . '

'; +$help_navigation .= '

' . __('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.') . '

'; get_current_screen()->add_help_tab( array( 'id' => 'help-navigation', @@ -49,7 +49,7 @@ $help_layout .= '

' . __('Drag and Drop - To rearrange the bo $help_layout .= '

' . __('Box Controls - Click the title bar of the box to expand or collapse it. In addition, some box have configurable content, and will show a “Configure” link in the title bar if you hover over it.') . '

'; get_current_screen()->add_help_tab( array( - 'id' => 'help-layout', + 'id' => 'help-layout', 'title' => __('Layout'), 'content' => $help_layout, ) ); @@ -65,7 +65,7 @@ $help_content .= '

' . __('Other WordPress News - Shows the < $help_content .= '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

'; get_current_screen()->add_help_tab( array( - 'id' => 'help-content', + 'id' => 'help-content', 'title' => __('Content'), 'content' => $help_content, ) ); diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 9fbde91c80..1afc2a978a 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -40,12 +40,20 @@ $wp_list_table->prepare_items(); $title = __('Links'); $this_file = $parent_file = 'link-manager.php'; -add_contextual_help( $current_screen, +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => '

' . sprintf(__('You can add links here to be displayed on your site, usually using Widgets. By default, links to several sites in the WordPress community are included as examples.'), 'widgets.php') . '

' . - '

' . __('Links may be separated into categories; these are different than the categories used on your posts.') . '

' . - '

' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '

' . + '

' . __('Links may be separated into Link Categories; these are different than the categories used on your posts.') . '

' . + '

' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'deleting-links', +'title' => __('Deleting Links'), +'content' => '

' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.') . '

' -); +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 2c32f329b3..68f7588d51 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -60,7 +60,6 @@ if ( isset($_GET['inline']) ) { $title = __('Upload New Media'); $parent_file = 'upload.php'; - get_current_screen()->add_help_tab( array( 'id' => 'adding-media', 'title' => __('Adding Media'), @@ -71,9 +70,14 @@ if ( isset($_GET['inline']) ) { 'id' => 'editing-new-media', 'title' => __('Editing New Media'), 'content' => - '

' . __('There are two options for uploading files: Select Files will open the Flash-based uploader (multiple file upload allowed), or you can use the Browser Uploader. Clicking Select Files opens a navigation window showing you files in your operating system. Selecting Open 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 Save before leaving this screen.') . '

' + '

' . __('There are three options for uploading files:') . + '

' . + '

' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '

' ) ); - get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Uploading Media Files') . '

' . diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index b5b6396019..d1d38ad6e2 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -445,11 +445,19 @@ wp_initial_nav_menu_meta_boxes(); if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() ) $messages[] = '

' . __('The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.') . '

'; -$help = '

' . __('This feature allows you to use a custom menu in place of your theme’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.') . '

'; -$help .= '

' . __('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.') . '

'; -$help .= '

' . __('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’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’t forget to click Save when you’re finished.') . '

'; - -add_contextual_help($current_screen, $help); +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => + '

' . __('This feature allows you to use a custom menu in place of your theme’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.') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'create-menus', +'title' => __('Create Menus'), +'content' => + '

' . __('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.') . '

+

' . __('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’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’t forget to click Save when you’re finished.') . '

' +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index ba714487a2..196a7073ff 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -110,13 +110,16 @@ default: } } - add_contextual_help($current_screen, + get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => '

' . __('You can use the editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.') . '

' . '

' . __('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’t forget to save your changes (Update File) when you’re finished.') . '

' . '

' . __('The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Lookup takes you to a web page about that particular function.') . '

' . '

' . __('If you want to make changes but don’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.') . '

' . ( is_network_admin() ? '

' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '

' : '' ) - ); + ) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index 661aa3ba64..ff398999c9 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -35,12 +35,20 @@ $body_id = $tab; do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information. -add_contextual_help($current_screen, +get_current_screen()->add_help_tab( array( +'id' => 'finding-plugins', +'title' => __('Finding Plugins'), +'content' => '

' . 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 WordPress.org Plugin Directory 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/') . '

' . '

' . __('If you know what you’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.') . '

' . - '

' . __('If you just want to get an idea of what’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.') . '

' . + '

' . __('If you just want to get an idea of what’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.') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'uploading-plugin', +'title' => __('Uploading Plugins'), +'content' => '

' . __('If you want to install a plugin that you’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.') . '

' -); +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 1c7c6ea77e..62acb93087 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -318,12 +318,20 @@ add_thickbox(); add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' ), 'default' => 999 ) ); -add_contextual_help($current_screen, +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => '

' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '

' . - '

' . sprintf(__('You can find additional plugins for your site by using the Plugin Browser/Installer functionality or by browsing the WordPress Plugin Directory directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your /wp-content/plugins directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '

' . + '

' . sprintf(__('You can find additional plugins for your site by using the Plugin Browser/Installer functionality or by browsing the WordPress Plugin Directory directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your /wp-content/plugins directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'compatibility-problems', +'title' => __('Compatibility Problems'), +'content' => '

' . __('Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’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.') . '

' . '

' . sprintf( __('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '

' -); +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 74b856ee66..a0aaac28b7 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -20,16 +20,18 @@ if ( !current_user_can('edit_themes') ) $title = __("Edit Themes"); $parent_file = 'themes.php'; -$help = '

' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '

'; -$help .= '

' . __('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.') . '

'; -$help .= '

' . __('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.') . '

'; -$help .= '

' . __('After typing in your edits, click Update File.') . '

'; -$help .= '

' . __('Advice: think very carefully about your site crashing if you are live-editing the theme currently in use.') . '

'; -$help .= '

' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.') . '

'; -if ( is_network_admin() ) - $help .= '

' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '

'; - -add_contextual_help($current_screen, $help); +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => + '

' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '

+

' . __('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.') . '

+

' . __('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.') . '

+

' . __('After typing in your edits, click Update File.') . '

+

' . __('Advice: think very carefully about your site crashing if you are live-editing the theme currently in use.') . '

+

' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.') . '

' . + ( is_network_admin() ? '

' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '

' : '' ) +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index a63a37a261..d4b0e31e9a 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -423,11 +423,14 @@ if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! is $title = __('WordPress Updates'); $parent_file = 'tools.php'; -add_contextual_help($current_screen, +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => '

' . __('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.') . '

' . '

' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '

' . '

' . __('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.') . '

' -); +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 27d9f8d06f..867450b385 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -149,20 +149,20 @@ get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'), 'content' => - '

' . __( 'All the files you’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.' ) . '

' . + '

' . __( 'All the files you’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.' ) . '

' . '

' . __( '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.' ) . '

' ) ); get_current_screen()->add_help_tab( array( -'id' => 'hover-actions', -'title' => __('Hover Actions'), +'id' => 'actions-links', +'title' => __('Action Links'), 'content' => - '

' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file’s name displays a simple screen to edit that individual file’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.' ) . '

' + '

' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file’s name displays a simple screen to edit that individual file’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.' ) . '

' ) ); get_current_screen()->add_help_tab( array( 'id' => 'attach-media-files', 'title' => __('Attach Media Files'), 'content' => - '

' . __( '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.' ) . '

' + '

' . __( '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.' ) . '

' ) ); get_current_screen()->set_help_sidebar( diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index e25c6e840e..e2ddc1c29c 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -35,16 +35,27 @@ do_action( 'sidebar_admin_setup' ); $title = __( 'Widgets' ); $parent_file = 'themes.php'; -$help = ' -

' . __('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.') . '

-

' . __('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.') . '

-

' . __('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.') . '

+get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => + '

' . __('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.') . '

+

' . __('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.') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'removing-reusing', +'title' => __('Removing and Reusing'), +'content' => + '

' . __('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.') . '

' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.') . '

-

' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '

-

' . __('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.') . '

-'; - -add_contextual_help($current_screen, $help); +

' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '

' +) ); +get_current_screen()->add_help_tab( array( +'id' => 'missing-widgets', +'title' => __('Missing Widgets'), +'content' => + '

' . __('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.') . '

' +) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' .