Changeset 8139
- Timestamp:
- 06/20/2008 04:35:45 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r8060 r8139 7 7 8 8 if ( !function_exists('wp_install') ) : 9 function wp_install($blog_title, $user_name, $user_email, $public, $ deprecated='') {9 function wp_install($blog_title, $user_name, $user_email, $public, $remote) { 10 10 global $wp_rewrite; 11 11 … … 19 19 update_option('admin_email', $user_email); 20 20 update_option('blog_public', $public); 21 update_option('enable_app',$remote); 22 update_option('enable_xmlrpc',$remote); 23 21 24 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 22 25 -
trunk/wp-admin/install.php
r7979 r8139 54 54 <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td> 55 55 </tr> 56 <tr> 57 <td colspan="2"><label><input type="checkbox" name="enable_remotepublishing" value="0" /> <?php _e('Enable remote publishing using the WordPress, Movable Type, MetaWeblog, Blogger and Atom publishing protocols for my blog.'); ?></label></td> 58 </tr> 59 </table> 56 60 </table> 57 61 <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" /> … … 69 73 $admin_email = stripslashes($_POST['admin_email']); 70 74 $public = (int) $_POST['blog_public']; 75 $remote = (int) $_POST['enable_remotepublishing']; 71 76 // check e-mail address 72 77 if (empty($admin_email)) { … … 79 84 80 85 $wpdb->show_errors(); 81 $result = wp_install($weblog_title, 'admin', $admin_email, $public );86 $result = wp_install($weblog_title, 'admin', $admin_email, $public, $remote); 82 87 extract($result, EXTR_SKIP); 83 88 ?>
Note: See TracChangeset
for help on using the changeset viewer.