Ticket #2480: blog_privacy.diff
File blog_privacy.diff, 6.0 KB (added by , 19 years ago) |
---|
-
wp-includes/default-filters.php
84 84 // Actions 85 85 add_action('wp_head', 'rsd_link'); 86 86 add_action('publish_future_post', 'wp_publish_post', 10, 1); 87 87 add_action('wp_head', 'noindex', 1); 88 88 ?> -
wp-includes/template-functions-general.php
702 702 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n"; 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 ?> -
wp-includes/version.php
3 3 // This just holds the version number, in a separate file so we can bump it without cluttering the SVN 4 4 5 5 $wp_version = '2.1-alpha1'; 6 $wp_db_version = 35 31;6 $wp_db_version = 3548; 7 7 8 8 ?> 9 No newline at end of file -
wp-admin/upgrade-functions.php
33 33 if ( $wp_current_db_version < 3308 ) 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 39 39 $wp_rewrite->flush_rules(); -
wp-admin/options-general.php
22 22 <?php _e('In a few words, explain what this weblog is about.') ?></td> 23 23 </tr> 24 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> 29 <tr valign="top"> 25 30 <th scope="row"><?php _e('WordPress address (URI):') ?></th> 26 31 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code" /></td> 27 32 </tr> … … 101 106 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> 107 112 -
wp-admin/install.php
107 107 <th><?php _e('Your e-mail:'); ?></th> 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> 112 116 <h2 class="step"> … … 121 125 // Fill in the data we gathered 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)) { 126 131 die (__("<strong>ERROR</strong>: please type your e-mail address")); … … 144 149 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); 156 update_option('ping_sites', ''); 157 } 147 158 148 159 // Now drop in some default links 149 160 $wpdb->query("INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, '".$wpdb->escape(__('Blogroll'))."')"); -
wp-admin/upgrade-schema.php
229 229 add_option('uploads_use_yearmonth_folders', 1); 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 234 236 $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog');