Make WordPress Core


Ignore:
Timestamp:
08/16/2009 09:01:39 AM (17 years ago)
Author:
westi
Message:

Restore the default behaviour on install of blogs appearing in search engines. Fixes #10621 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r11393 r11832  
    5050
    5151function display_setup_form( $error = null ) {
     52        // Ensure that Blogs appear in search engines by default
     53        $blog_public = 1;
     54        if ( isset($_POST) && !empty($_POST) ) {
     55                $blog_public = isset($_POST['blog_public']);
     56        }
     57       
    5258        if ( ! is_null( $error ) ) {
    5359?>
     
    6672                </tr>
    6773                <tr>
    68                         <td colspan="2"><label><input type="checkbox" name="blog_public" value="1"<?php if( isset($_POST) && ! empty($_POST) && isset( $_POST['blog_public'] ) ) : ?> checked="checked"<?php endif; ?> /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td>
     74                        <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked($blog_public); ?> /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td>
    6975                </tr>
    7076        </table>
Note: See TracChangeset for help on using the changeset viewer.