Make WordPress Core

Ticket #34149: 34149.3.patch

File 34149.3.patch, 3.2 KB (added by DrewAPicture, 9 years ago)
  • src/wp-signup.php

     
    6969                .mu_register label { font-weight:700; font-size:15px; display:block; margin:10px 0; }
    7070                .mu_register label.checkbox { display:inline; }
    7171                .mu_register .mu_alert { font-weight:700; padding:10px; color:#333333; background:#ffffe0; border:1px solid #e6db55; }
     72                .mu_register fieldset { border:0; padding:0; margin:0; }
     73                .mu_register input[type="checkbox"] { vertical-align:middle; }
     74                .mu_register p.description { margin-top:0.2em; font-size:small; font-style:italic; }
    7275        </style>
    7376        <?php
    7477}
     
    163166
    164167        <div id="privacy">
    165168        <p class="privacy-intro">
    166             <label for="blog_public_on"><?php _e('Privacy:') ?></label>
    167             <?php _e( 'Allow search engines to index this site.' ); ?>
    168             <br style="clear:both" />
    169             <label class="checkbox" for="blog_public_on">
    170                 <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> />
    171                 <strong><?php _e( 'Yes' ); ?></strong>
    172             </label>
    173             <label class="checkbox" for="blog_public_off">
    174                 <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if ( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> />
    175                 <strong><?php _e( 'No' ); ?></strong>
    176             </label>
    177         </p>
     169                        <fieldset>
     170                                <label><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?></label>
     171                                <legend class="screen-reader-text">
     172                                        <span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span>
     173                                </legend>
     174                                <?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
     175                                        <label for="blog-public">
     176                                                <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
     177                                                <?php _e( 'Allow search engines to index this site' ); ?>
     178                                        </label>
     179                                        <label for="blog-norobots">
     180                                                <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
     181                                                <?php _e( 'Discourage search engines from indexing this site' ); ?>
     182                                        </label>
     183                                        <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>
     184                                        <?php
     185                                        /** This action is documented in wp-admin/options-reading.php */
     186                                        do_action( 'blog_privacy_selector' );
     187                                        ?>
     188                                <?php else : ?>
     189                                        <label for="blog_public">
     190                                                <input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
     191                                                <?php _e( 'Discourage search engines from indexing this site' ); ?>
     192                                        </label>
     193                                        <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
     194                                <?php endif; ?>
     195                        </fieldset>
     196                </p>
    178197        </div>
    179198
    180199        <?php