Make WordPress Core


Ignore:
Timestamp:
11/29/2011 04:58:58 PM (13 years ago)
Author:
koopersmith
Message:

Update help text on settings pages. props Ipstenu, see #19020.

File:
1 edited

Legend:

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

    r19119 r19472  
    1616$parent_file = 'options-general.php';
    1717
    18 add_contextual_help($current_screen,
    19     '<p>' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '</p>' .
    20     '<p>' . __('The Embed option allows you embed a video, image, or other media content into your content automatically by typing the URL (of the web page where the file lives) on its own line when you create your content.') . '</p>' .
    21     ( is_multisite() ? '' : '<p>' . __('Uploading Options gives you folder and path choices for storing your files in your installation&#8217;s directory.') . '</p>' ) .
    22     '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>'
    23 );
     18$media_options_help = '<p>' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '</p>' .
     19    '<p>' . __('The Embed option allows you embed a video, image, or other media content into your content automatically by typing the URL (of the web page where the file lives) on its own line when you create your content.') . '</p>';
     20
     21if ( ! is_multisite() ) {
     22    $media_options_help .= '<p>' . __('Uploading Options gives you folder and path choices for storing your files in your installation&#8217;s directory.') . '</p>';
     23}
     24
     25$media_options_help .= '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>';
     26
     27get_current_screen()->add_help_tab( array(
     28    'id'      => 'options-media',
     29    'title'   => __('Media Options'),
     30    'content' => $media_options_help,
     31) );
    2432
    2533get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.