WordPress.org

Make WordPress Core

Ticket #18785: 18785.options-update.1.diff

File 18785.options-update.1.diff, 6.5 KB (added by mbijon, 3 years ago)

Options > Reading & Privacy screen info

  • wp-admin/options-privacy.php

     
    1515$title = __('Privacy Settings'); 
    1616$parent_file = 'options-general.php'; 
    1717 
    18 add_contextual_help($current_screen, 
    19         '<p>' . __('You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the second option here. Note that your privacy is not complete; your site is still visible on the web.') . '</p>' . 
    20         '<p>' . __('When this setting is in effect a reminder is shown in the Right Now box of the Dashboard that says, &#8220;Search Engines Blocked,&#8221; to remind you that your site is not being crawled.') . '</p>' . 
    21         '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . 
    22         '<p><strong>' . __('For more information:') . '</strong></p>' . 
    23         '<p>' . __('<a href="http://codex.wordpress.org/Settings_Privacy_Screen" target="_blank">Documentation on Privacy Settings</a>') . '</p>' . 
    24         '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
     18/* Contextual help, using class WP_Screen */ 
     19$privacy_info  = '<p>' . __('You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the second option here. When the second option is selected most major search services will not include your site in their results. Note that this is not a security setting; your site is still visible on the web.') . '</p>'; 
     20$privacy_info .= '<p>' . __('When this setting is in effect a reminder is shown in the Right Now box of the Dashboard that says, &#8220;Search Engines Blocked,&#8221; to remind you that your site is not being crawled.') . '</p>'; 
     21$privacy_info .= '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>'; 
     22 
     23$current_screen->add_help_tab( array( 
     24    'id'      => 'privacy-info', 
     25    'title'   => __('Screen Info'), 
     26    'content' => $privacy_info 
     27) ); 
     28 
     29/* Contextual help links, right-side, using class WP_Screen */ 
     30$current_screen->add_help_sidebar( 
     31    '<p><strong>' . __('For more information:') . '</strong></p>' . 
     32    '<p>' . __('<a href="http://codex.wordpress.org/Settings_Privacy_Screen" target="_blank">Documentation on Privacy Settings</a>') . '</p>' . 
     33    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2534); 
    2635 
    2736include('./admin-header.php'); 
     
    4251<label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/> 
    4352<input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> 
    4453<label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label> 
    45 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p> 
     54<p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request. Refer to the &#8216;Help&#8217; tab for more information.' ); ?></p> 
    4655<?php do_action('blog_privacy_selector'); ?> 
    4756</fieldset></td> 
    4857</tr> 
  • wp-admin/options-reading.php

     
    4141} 
    4242add_action('admin_head', 'add_js'); 
    4343 
    44 add_contextual_help($current_screen, 
    45         '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' . 
    46         '<p>' . sprintf(__('You can choose what&#8217;s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two <a href="%s">Pages</a>. One will become the front page, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '</p>' . 
    47         '<p>' . __('You can also control the display of your content in RSS feeds, including the maximum numbers of posts to display, whether to show full text or a summary, and the character set encoding.') . '</p>' . 
    48         '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . 
     44/* Contextual help, using class WP_Screen */ 
     45$reading_info  = '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>'; 
     46$reading_info .= '<p>' . sprintf(__('You can choose what&#8217;s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two <a href="%s">Pages</a>. One will become the front page, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '</p>'; 
     47$reading_info .= '<p>' . __('You can also control the display of your content in RSS feeds, including the maximum numbers of posts to display, whether to show full text or a summary, and the character set encoding.') . '</p>'; 
     48$reading_info .= '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>'; 
     49 
     50$current_screen->add_help_tab( array( 
     51        'id'      => 'reading-info', 
     52        'title'   => __('Screen Info'), 
     53        'content' => $reading_info 
     54) ); 
     55 
     56/* Contextual help links, right-side, using class WP_Screen */ 
     57$current_screen->add_help_sidebar( 
    4958        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    5059        '<p>' . __('<a href="http://codex.wordpress.org/Settings_Reading_Screen" target="_blank">Documentation on Reading Settings</a>') . '</p>' . 
    5160        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
     
    120129<td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" /> 
    121130<span class="description"><?php _e( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended, if you are adventurous there are some <a href="http://en.wikipedia.org/wiki/Character_set">other encodings</a>)' ); ?></span></td> 
    122131</tr> 
     132 
    123133<?php do_settings_fields( 'reading', 'default' ); ?> 
    124134</table> 
    125135