Make WordPress Core

Ticket #25430: 25430.diff

File 25430.diff, 1.5 KB (added by DrewAPicture, 12 years ago)

Third pass

  • src/wp-admin/options-reading.php

     
    150150        <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
    151151        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    152152        <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>
    153         <?php do_action('blog_privacy_selector'); ?>
     153        <?php
     154        /**
     155         * Enable the legacy 'Site Visibility' privacy options.
     156         *
     157         * By default the privacy options form displays a single checkbox to 'discourage' search
     158         * engines from indexing the site. This action serves a dual purpose:
     159         * 1. Disable the single checkbox in favor of a multiple-choice list of radio buttons.
     160         * 2. Open the door to adding additional radio button choices to the list.
     161         *
     162         * Hooking to this action also converts the 'Search Engine Visibility' heading to the more
     163         * open-ended 'Site Visibility' heading.
     164         *
     165         * @since 2.1.0
     166         */
     167        do_action('blog_privacy_selector');
     168        ?>
    154169<?php else : ?>
    155170        <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    156171        <?php _e( 'Discourage search engines from indexing this site' ); ?></label>