Make WordPress Core


Ignore:
Timestamp:
09/13/2012 05:28:57 PM (12 years ago)
Author:
nacin
Message:

Fold Privacy Settings into Reading Settings, moving blog_public (search engine/robots) to options-reading and removing options-privacy.

When blog_public only has two values (as judged by whether the blog_privacy_selector action is used), convert from radio buttons to a checkbox, and rename from 'Site Visibility' to a more specific 'Search Engine Visibility'.

The text and implementation may change a bit. see #16416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r21789 r21838  
    393393    echo '</p>';
    394394
    395     // Check if search engines are blocked.
     395    // Check if search engines are asked not to index this site.
    396396    if ( !is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ) {
    397397        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') );
    398         $content = apply_filters('privacy_on_link_text', __('Search Engines Blocked') );
    399 
    400         echo "<p><a href='options-privacy.php' title='$title'>$content</a></p>";
     398        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged') );
     399
     400        echo "<p><a href='options-reading.php' title='$title'>$content</a></p>";
    401401    }
    402402
     
    12611261        <p><?php _e( 'Here are a few easy things you can do to get your feet wet. Make sure to click Save on each Settings screen.' ); ?></p>
    12621262        <ul>
    1263         <li><?php echo sprintf( __( '<a href="%s">Choose your privacy setting</a>' ), esc_url( admin_url('options-privacy.php') ) ); ?></li>
    12641263        <li><?php echo sprintf( __( '<a href="%s">Select your tagline and time zone</a>' ), esc_url( admin_url('options-general.php') ) ); ?></li>
    12651264        <li><?php echo sprintf( __( '<a href="%s">Turn comments on or off</a>' ), esc_url( admin_url('options-discussion.php') ) ); ?></li>
Note: See TracChangeset for help on using the changeset viewer.