Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Restore the default behaviour on install of blogs appearing in search…

… engines. Fixes #10621 for 2.8 branch.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 3958df020f2cb3b394eac247e989226bfb734af4 1 parent 1ce7e21
westi authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 wp-admin/install.php
View
8 wp-admin/install.php
@@ -49,6 +49,12 @@ function display_header() {
}//end function display_header();
function display_setup_form( $error = null ) {
+ // Ensure that Blogs appear in search engines by default
+ $blog_public = 1;
+ if ( isset($_POST) && !empty($_POST) ) {
+ $blog_public = isset($_POST['blog_public']);
+ }
+
if ( ! is_null( $error ) ) {
?>
<p><?php printf( __('<strong>ERROR</strong>: %s'), $error); ?></p>
@@ -65,7 +71,7 @@ function display_setup_form( $error = null ) {
<?php _e('Double-check your email address before continuing.'); ?>
</tr>
<tr>
- <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>
+ <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>
</tr>
</table>
<p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e('Install WordPress'); ?>" class="button" /></p>
Please sign in to comment.
Something went wrong with that request. Please try again.