Changeset 3548
- Timestamp:
- 02/18/2006 07:40:43 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install.php
r3517 r3548 108 108 <td><input name="admin_email" type="text" id="admin_email" size="25" /></td> 109 109 </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> 110 114 </table> 111 115 <p><em><?php _e('Double-check that email address before continuing.'); ?></em></p> … … 122 126 $weblog_title = stripslashes($_POST['weblog_title']); 123 127 $admin_email = stripslashes($_POST['admin_email']); 128 $public = (int) $_POST['blog_public']; 124 129 // check e-mail address 125 130 if (empty($admin_email)) { … … 145 150 update_option('blogname', $weblog_title); 146 151 update_option('admin_email', $admin_email); 152 update_option('blog_public', $public); 153 // If not a public blog, don't ping. 154 if ( ! $public ) 155 update_option('default_pingback_flag', 0); 147 156 148 157 // Now drop in some default links -
trunk/wp-admin/options-general.php
r3541 r3548 22 22 <?php _e('In a few words, explain what this weblog is about.') ?></td> 23 23 </tr> 24 <tr valign="top"> 25 <th scope="row"><?php _e('Search Engines:') ?> </th> 26 <td><label><input type="checkbox" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> <?php _e('I would like my blog to appear in search engines like Google and Technorati.'); ?></label> 27 </td> 28 </tr> 24 29 <tr valign="top"> 25 30 <th scope="row"><?php _e('WordPress address (URI):') ?></th> … … 102 107 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> 103 108 <input type="hidden" name="action" value="update" /> 104 <input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role " />109 <input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role,blog_public" /> 105 110 </p> 106 111 </form> -
trunk/wp-admin/upgrade-functions.php
r3534 r3548 34 34 upgrade_160(); 35 35 36 if ( $wp_current_db_version < 35 31)36 if ( $wp_current_db_version < 3548 ) 37 37 upgrade_210(); 38 38 -
trunk/wp-admin/upgrade-schema.php
r3517 r3548 230 230 add_option('upload_path', 'wp-content/uploads'); 231 231 } 232 // 2.1 233 add_option('blog_public', 1); 232 234 233 235 // Delete unused options -
trunk/wp-includes/default-filters.php
r3524 r3548 82 82 add_filter('the_author', 'ent2ncr', 8); 83 83 84 // Misc filters 85 add_filter('option_ping_sites', 'privacy_ping_filter'); 86 84 87 // Actions 85 88 add_action('wp_head', 'rsd_link'); 86 89 add_action('publish_future_post', 'wp_publish_post', 10, 1); 87 90 add_action('wp_head', 'noindex', 1); 88 91 ?> -
trunk/wp-includes/functions.php
r3535 r3548 2382 2382 } 2383 2383 2384 function privacy_ping_filter( $sites ) { 2385 if ( get_option('blog_public') ) 2386 return $sites; 2387 else 2388 return ''; 2389 } 2384 2390 ?> -
trunk/wp-includes/template-functions-general.php
r3518 r3548 703 703 } 704 704 705 function noindex() { 706 // If the blog is not public, tell robots to go away. 707 if ( ! get_option('blog_public') ) 708 echo '<meta name="robots" content="noindex,nofollow" />' . "\n"; 709 } 705 710 ?> -
trunk/wp-includes/version.php
r3531 r3548 4 4 5 5 $wp_version = '2.1-alpha1'; 6 $wp_db_version = 35 31;6 $wp_db_version = 3548; 7 7 8 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.