From 3ede56505b3b296f05866eefc8fe0950db964c57 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Tue, 29 Nov 2011 18:23:04 +0000 Subject: [PATCH] In multisite, hide help text for single-site only options. props dougwrites, see #19020. git-svn-id: http://svn.automattic.com/wordpress/trunk@19477 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-general.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index eb28ae43e5..29cf3ae517 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -58,15 +58,21 @@ function add_js() { } add_action('admin_head', 'add_js'); +$options_help = '

' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . + '

' . __('Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.') . '

'; + +if ( ! is_multisite() ) { + $options_help .= '

' . __('The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.') . '

' . + '

' . __('If you want site visitors to be able to register themselves, as opposed to by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site admin.') . '

'; +} + +$options_help .= '

' . __('UTC means Coordinated Universal Time.') . '

' . + '

' . __('Remember to click the Save Changes button at the bottom of the screen for new settings to take effect.') . '

'; + get_current_screen()->add_help_tab( array( 'id' => 'options', 'title' => __('Options'), - 'content' => '

' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . - '

' . __('Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.') . '

' . - '

' . __('The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.') . '

' . - '

' . __('If you want site visitors to be able to register themselves, as opposed to being registered by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site administrator.') . '

' . - '

' . __('UTC means Coordinated Universal Time.') . '

' . - '

' . __('Remember to click the Save Changes button at the bottom of the screen for new settings to take effect.') . '

', + 'content' => $options_help, ) ); get_current_screen()->set_help_sidebar(