Make WordPress Core

Ticket #25430: options-reading.2.patch

File options-reading.2.patch, 1.3 KB (added by siobhyb, 12 years ago)

Pass 2 at wp-admin/option-reading.php

  • 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        * Fires after the default privacy options are printed on the screen.
     156        *
     157        * This action is required in order to add additional values to the privacy options form. When called, the form's
     158        * default radio buttons are converted to check boxes, and the 'Site Visibility' heading is changed to the more
     159        * specific 'Search Engine Visibility.'
     160        *
     161        * @since 2.1.0
     162        */
     163        do_action('blog_privacy_selector');
     164        ?>
    154165<?php else : ?>
    155166        <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    156167        <?php _e( 'Discourage search engines from indexing this site' ); ?></label>