Make WordPress Core

Ticket #27628: 27628.2.patch

File 27628.2.patch, 3.0 KB (added by ocean90, 8 years ago)
  • src/wp-admin/css/install.css

     
    6161        font-variant: normal;
    6262}
    6363
     64fieldset {
     65        border: 0;
     66        padding: 0;
     67        margin: 0;
     68}
     69
    6470label {
    6571        cursor: pointer;
    6672}
  • src/wp-admin/install.php

     
    177177                        <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
    178178                </tr>
    179179                <tr>
    180                         <th scope="row"><?php _e( 'Privacy' ); ?></th>
    181                         <td colspan="2"><label><input type="checkbox" name="blog_public" id="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site' ); ?></label></td>
     180                <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </th>
     181                <td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
     182                <?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
     183                        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> />
     184                        <label for="blog-public"><?php _e( 'Allow search engines to index this site' );?></label><br/>
     185                        <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />
     186                        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
     187                        <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>
     188                        <?php
     189                        /** This action is documented in wp-admin/options-reading.php */
     190                        do_action( 'blog_privacy_selector' );
     191                        ?>
     192                <?php else : ?>
     193                        <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />
     194                        <?php _e( 'Discourage search engines from indexing this site' ); ?></label>
     195                        <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
     196                <?php endif; ?>
     197                </fieldset></td>
    182198                </tr>
    183199        </table>
    184200        <p class="step"><?php submit_button( __( 'Install WordPress' ), 'large', 'Submit', false, array( 'id' => 'submit' ) ); ?></p>
     
    291307                $admin_password = isset($_POST['admin_password']) ? wp_unslash( $_POST['admin_password'] ) : '';
    292308                $admin_password_check = isset($_POST['admin_password2']) ? wp_unslash( $_POST['admin_password2'] ) : '';
    293309                $admin_email  = isset( $_POST['admin_email'] ) ?trim( wp_unslash( $_POST['admin_email'] ) ) : '';
    294                 $public       = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 0;
     310                $public       = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 1;
    295311
    296312                // Check email address.
    297313                $error = false;