WordPress.org

Make WordPress Core

Changeset 19477


Ignore:
Timestamp:
11/29/11 18:23:04 (4 years ago)
Author:
koopersmith
Message:

In multisite, hide help text for single-site only options. props dougwrites, see #19020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r19472 r19477  
    5959add_action('admin_head', 'add_js'); 
    6060 
     61$options_help = '<p>' . __('The fields on this screen determine some of the basics of your site setup.') . '</p>' . 
     62    '<p>' . __('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.') . '</p>'; 
     63 
     64if ( ! is_multisite() ) { 
     65    $options_help .= '<p>' . __('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.') . '</p>' . 
     66        '<p>' . __('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.') . '</p>'; 
     67} 
     68 
     69$options_help .= '<p>' . __('UTC means Coordinated Universal Time.') . '</p>' . 
     70    '<p>' . __('Remember to click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>'; 
     71 
    6172get_current_screen()->add_help_tab( array( 
    6273    'id'      => 'options', 
    6374    'title'   => __('Options'), 
    64     'content' => '<p>' . __('The fields on this screen determine some of the basics of your site setup.') . '</p>' . 
    65         '<p>' . __('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.') . '</p>' . 
    66         '<p>' . __('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.') . '</p>' . 
    67         '<p>' . __('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.') . '</p>' . 
    68         '<p>' . __('UTC means Coordinated Universal Time.') . '</p>' . 
    69         '<p>' . __('Remember to click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>', 
     75    'content' => $options_help, 
    7076) ); 
    7177 
Note: See TracChangeset for help on using the changeset viewer.