diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index cce196b789..37ee93e1c5 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -111,6 +111,10 @@ else add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) ); +$current_screen->add_screen_options( +'

test

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

' . diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index d2a4ed93c1..32b46d8bf9 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -161,13 +161,17 @@ do_action('do_meta_boxes', $post_type, 'side', $post); $current_screen->add_option('layout_columns', array('max' => 2, 'default' => 'auto') ); +$current_screen->add_screen_options( +'

test

' +); + if ( 'post' == $post_type ) { $customize_display = '

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

'; $current_screen->add_help_tab( array( 'id' => 'customize-display', 'title' => __('Customizing This Display'), - 'content' => $customize_display, + 'content' => $customize_display ) ); $title_and_editor = '

' . __('Title - Enter a title for your post. After you enter a title, you’ll see the permalink below, which you can edit.') . '

'; diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 3dbc0d41cf..ccd8a26644 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -39,15 +39,18 @@ do_action('do_meta_boxes', 'link', 'side', $link); add_screen_option('layout_columns', array('max' => 2, 'default' => 'auto') ); -add_contextual_help($current_screen, - '

' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link’s web address and name (the text you want to display on your site as the link) are required fields.' ) . '

' . - '

' . __( '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’t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '

' . - '

' . __( 'XFN stands for XHTML Friends Network, 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.' ) . '

' . - '

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

' . - '

' . __( 'Documentation on Creating Links' ) . '

' . - '

' . __( 'Support Forums' ) . '

' +$current_screen->add_screen_options( +'

test

' ); +add_contextual_help( $current_screen, ' +

' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link’s web address and name (the text you want to display on your site as the link) are required fields.' ) . '

+

' . __( '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’t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '

+

' . __( 'XFN stands for XHTML Friends Network, 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.' ) . '

+

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

+

' . __( 'Documentation on Creating Links' ) . '

+

' . __( 'Support Forums' ) . '

' ); + require_once ('admin-header.php'); ?> diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index b0e9fc55e4..ca63fa9cd7 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -30,6 +30,10 @@ if ( 'post' != $post_type ) { add_screen_option( 'per_page', array('label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') ); +$current_screen->add_screen_options( +'

test

' +); + switch ( $wp_list_table->current_action() ) { case 'add-tag': diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 933219ea6a..587ed2b3ba 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -148,6 +148,12 @@ wp_enqueue_script('inline-edit-post'); $title = $post_type_object->labels->name; +add_screen_option( 'per_page', array('label' => $title, 'default' => 20) ); + +$current_screen->add_screen_options( +'

test

' +); + if ( 'post' == $post_type ) { add_contextual_help($current_screen, '

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

' . @@ -180,8 +186,6 @@ if ( 'post' == $post_type ) { ); } -add_screen_option( 'per_page', array('label' => $title, 'default' => 20) ); - require_once('./admin-header.php'); ?>
diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 7a8b1cb7fe..b53ca78478 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -642,6 +642,7 @@ final class WP_Screen { // Call old contextual_help_list filter. if ( ! isset( $_wp_contextual_help ) ) $_wp_contextual_help = array(); + $_wp_contextual_help = apply_filters( 'contextual_help_list', $_wp_contextual_help, $this ); if ( isset( $_wp_contextual_help[ $this->id ] ) ) { @@ -654,14 +655,6 @@ final class WP_Screen { ) ); } - // Add screen options tab - if ( $this->show_screen_options() ) { - $this->add_help_tab( array( - 'title' => __('Screen Options'), - 'callback' => array( $this, 'render_screen_options' ), - ) ); - } - // Time to render! ?>
@@ -712,7 +705,7 @@ final class WP_Screen { _show_screen_options ) ) @@ -746,6 +739,15 @@ final class WP_Screen { return $this->_show_screen_options; } + public function add_screen_options($before = '') { + $this->add_help_tab( array( + 'title' => __('Screen Options'), + 'id' => 'screen-options', + 'callback' => array( $this, 'render_screen_options' ), + 'content' => $before + )); + } + /** * Render the screen options tab. * @@ -756,6 +758,13 @@ final class WP_Screen { $columns = get_column_headers( $this ); $hidden = get_hidden_columns( $this ); + $this->_screen_settings = apply_filters( 'screen_settings', '', $this ); + + switch ( $this->id ) { + case 'widgets': + $this->_screen_settings = '

' . __('Enable accessibility mode') . '' . __('Disable accessibility mode') . "

\n"; + break; + } ?>
diff --git a/wp-admin/index.php b/wp-admin/index.php index 4b2667317d..63ad646fa2 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -27,6 +27,9 @@ if ( is_user_admin() ) else add_screen_option('layout_columns', array('max' => 4, 'default' => 'auto') ); +$current_screen->add_screen_options( +'

test

' +); // Help tabs diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index bb03b3888b..1d66b0c24a 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -40,6 +40,10 @@ $wp_list_table->prepare_items(); $title = __('Links'); $this_file = $parent_file = 'link-manager.php'; +$current_screen->add_screen_options( +'

test

' +); + add_contextual_help( $current_screen, '

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

' . diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 3e568d62d6..cb0922586c 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -445,14 +445,17 @@ 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.') . '

'; -$help .= '

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

'; -$help .= '

' . __('Documentation on Menus') . '

'; -$help .= '

' . __('Support Forums') . '

'; +$current_screen->add_screen_options( +'

test

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

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

+

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

+

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

+

' . __('Documentation on Menus') . '

+

' . __('Support Forums') . '

' ); // Get the admin header require_once( './admin-header.php' ); diff --git a/wp-admin/network/index.php b/wp-admin/network/index.php index 184199b1f9..616aae1215 100644 --- a/wp-admin/network/index.php +++ b/wp-admin/network/index.php @@ -40,6 +40,10 @@ add_thickbox(); add_screen_option('layout_columns', array('max' => 4, 'default' => 'auto') ); +$current_screen->add_screen_options( +'

test

' +); + require_once( '../admin-header.php' ); ?> diff --git a/wp-admin/network/site-themes.php b/wp-admin/network/site-themes.php index 867984576a..bd1348b2db 100644 --- a/wp-admin/network/site-themes.php +++ b/wp-admin/network/site-themes.php @@ -124,6 +124,10 @@ if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) { add_thickbox(); add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) ); +$current_screen->add_screen_options( +'

test

' +); + $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); $title_site_url_linked = sprintf( __('Edit Site: %2$s'), get_blogaddress_by_id( $id ), $site_url_no_http ); $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); diff --git a/wp-admin/network/site-users.php b/wp-admin/network/site-users.php index 1f76e8b1d6..45e8c4cbe9 100644 --- a/wp-admin/network/site-users.php +++ b/wp-admin/network/site-users.php @@ -155,6 +155,10 @@ if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) { add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) ); +$current_screen->add_screen_options( +'

test

' +); + $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); $title_site_url_linked = sprintf( __('Edit Site: %2$s'), get_blogaddress_by_id( $id ), $site_url_no_http ); $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 52778d8ecf..21d1f8e567 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -24,6 +24,10 @@ $parent_file = 'sites.php'; add_screen_option( 'per_page', array('label' => _x( 'Sites', 'sites per page (screen options)' )) ); +$current_screen->add_screen_options( +'

test

' +); + add_contextual_help($current_screen, '

' . __('Add New takes you to the Add New Site screen. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.') . '

' . '

' . __('This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.') . '

' . diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php index a0609578a2..ec1c62969e 100644 --- a/wp-admin/network/themes.php +++ b/wp-admin/network/themes.php @@ -175,6 +175,10 @@ add_thickbox(); add_screen_option( 'per_page', array('label' => _x( 'Themes', 'themes per page (screen options)' )) ); +$current_screen->add_screen_options( +'

test

' +); + add_contextual_help($current_screen, '

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

' . '

' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site’s Appearance > Themes screen.') . '

' . diff --git a/wp-admin/network/users.php b/wp-admin/network/users.php index 3a5002fbd0..4400d6e0fe 100644 --- a/wp-admin/network/users.php +++ b/wp-admin/network/users.php @@ -229,6 +229,10 @@ $parent_file = 'users.php'; add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) ); +$current_screen->add_screen_options( +'

test

' +); + add_contextual_help($current_screen, '

' . __('This table shows all users across the network and the sites to which they are assigned.') . '

' . '

' . __('Hover over any user on the list to make the edit links appear. The Edit link on the left will take you to his or her Edit User profile page; the Edit link on the right by any site name goes to an Edit Site screen for that site.') . '

' . diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index 4d43929dd8..221539c73a 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -35,16 +35,19 @@ $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, - '

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

' . - '

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

' . - '

' . __('Documentation on Installing Plugins') . '

' . - '

' . __('Support Forums') . '

' +$current_screen->add_screen_options( +'

test

' ); +add_contextual_help( $current_screen, ' +

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

+

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

+

' . __('Documentation on Installing Plugins') . '

+

' . __('Support Forums') . '

' ); + include(ABSPATH . 'wp-admin/admin-header.php'); ?>
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index c34b6a5534..c06d85b97b 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -318,16 +318,19 @@ add_thickbox(); add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' )) ); -add_contextual_help($current_screen, - '

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

' . - '

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

' . - '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' +$current_screen->add_screen_options( +'

test

' ); +add_contextual_help( $current_screen, ' +

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

+

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

+

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

+

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

+

' . __('Support Forums') . '

' ); + $title = __('Plugins'); $parent_file = 'plugins.php'; diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 0f3e5ddac9..1bfe9f7191 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -139,16 +139,19 @@ wp_enqueue_script( 'media' ); add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) ); -add_contextual_help( $current_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.' ) . '

' . - '

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

' . - '

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

' . - '

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

' . - '

' . __( 'Documentation on Media Library' ) . '

' . - '

' . __( 'Support Forums' ) . '

' +$current_screen->add_screen_options( +'

test

' ); +add_contextual_help( $current_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.' ) . '

+

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

+

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

+

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

+

' . __( 'Documentation on Media Library' ) . '

+

' . __( 'Support Forums' ) . '

' ); + require_once('./admin-header.php'); ?> diff --git a/wp-admin/users.php b/wp-admin/users.php index 72d25e3d2a..eba4c3b944 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -19,17 +19,19 @@ $parent_file = 'users.php'; add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) ); -// contextual help - choose Help on the top right of admin panel to preview this. -add_contextual_help($current_screen, - '

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

' . - '

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

' . - '

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

' . - '

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

' . - '

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

' . - '

' . __('Descriptions of Roles and Capabilities') . '

' . - '

' . __('Support Forums') . '

' +$current_screen->add_screen_options( +'

test

' ); +add_contextual_help( $current_screen, ' +

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

+

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

+

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

+

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

+

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

+

' . __('Descriptions of Roles and Capabilities') . '

+

' . __('Support Forums') . '

' ); + if ( empty($_REQUEST) ) { $referer = ''; } elseif ( isset($_REQUEST['wp_http_referer']) ) { diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 5f82da4a24..e98f34fe2a 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -31,18 +31,20 @@ 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.') . '

-

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

-'; -$help .= '

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

'; -$help .= '

' . __('Documentation on Widgets') . '

'; -$help .= '

' . __('Support Forums') . '

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

test

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

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

+

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

+

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

+

' . __('Documentation on Widgets') . '

+

' . __('Support Forums') . '

' ); // These are the widgets grouped by sidebar $sidebars_widgets = wp_get_sidebars_widgets();