WordPress.org

Make WordPress Core

Changeset 25717


Ignore:
Timestamp:
10/07/2013 05:18:00 PM (6 years ago)
Author:
DrewAPicture
Message:

Inline documentation for wp-admin/options-reading.php.

Props siobhyb for the initial patch.
Fixes #25430.

File:
1 edited

Legend:

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

    r25616 r25717  
    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. Hooking to 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' ) ); ?> />
Note: See TracChangeset for help on using the changeset viewer.