Make WordPress Core


Ignore:
Timestamp:
02/18/2006 07:40:43 AM (18 years ago)
Author:
ryan
Message:

Blog privacy. fixes #2480

File:
1 edited

Legend:

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

    r3517 r3548  
    108108    <td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
    109109</tr>
     110<tr>
     111<th scope="row"  valign="top"> <?php __('Privacy:'); ?></th>
     112<td><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('I would like my blog to appear in search engines like Google and Technorati.'); ?></label></td>
     113</tr>
    110114</table>
    111115<p><em><?php _e('Double-check that email address before continuing.'); ?></em></p>
     
    122126$weblog_title = stripslashes($_POST['weblog_title']);
    123127$admin_email = stripslashes($_POST['admin_email']);
     128$public = (int) $_POST['blog_public'];
    124129// check e-mail address
    125130if (empty($admin_email)) {
     
    145150update_option('blogname', $weblog_title);
    146151update_option('admin_email', $admin_email);
     152update_option('blog_public', $public);
     153// If not a public blog, don't ping.
     154if ( ! $public )
     155    update_option('default_pingback_flag', 0);
    147156
    148157// Now drop in some default links
Note: See TracChangeset for help on using the changeset viewer.