diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 02cc8b3fb..a7342b41d 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -149,23 +149,36 @@ wp_enqueue_script('inline-edit-post'); $title = $post_type_object->labels->name; if ( 'post' == $post_type ) { - add_contextual_help($current_screen, - '

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

' . - '' . - '

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

' . - '' . - '

' . __('You can also edit multiple posts at once. Select the posts you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '

' - ); + 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', + 'title' => __('Action Links'), + '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( + 'id' => 'edit-multiple-posts', + 'title' => __('Edit Multiple Posts'), + 'content' => + '

' . __('You can also edit multiple posts at once. Select the posts you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '

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

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

' . @@ -173,11 +186,19 @@ if ( 'post' == $post_type ) { '

' . __('Support Forums') . '

' ); } elseif ( 'page' == $post_type ) { - add_contextual_help($current_screen, - '

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

' . - '

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

' + ) ); + 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.') . '

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

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

' . diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 61498380a..2c32f329b 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -61,10 +61,18 @@ if ( isset($_GET['inline']) ) { $title = __('Upload New Media'); $parent_file = 'upload.php'; - add_contextual_help( $current_screen, -'

' . __('You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share.') . '

' . + get_current_screen()->add_help_tab( array( + 'id' => 'adding-media', + 'title' => __('Adding Media'), + 'content' => + '

' . __('You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share.') . '

' + ) ); + get_current_screen()->add_help_tab( array( + '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.') . '

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

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

' . diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 8b07cee84..27d9f8d06 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -145,12 +145,25 @@ wp_enqueue_script( 'media' ); add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) ); -add_contextual_help( $current_screen, +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.' ) . '

' . - '

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

' . - '

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

' . + '

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

' +) ); +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.' ) . '

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

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

' .