Make WordPress Core

Changeset 8139


Ignore:
Timestamp:
06/20/2008 04:35:45 PM (18 years ago)
Author:
westi
Message:

Allow enabling of remote publishing at install time. See #7157.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r8060 r8139  
    77
    88if ( !function_exists('wp_install') ) :
    9 function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
     9function wp_install($blog_title, $user_name, $user_email, $public, $remote) {
    1010        global $wp_rewrite;
    1111
    … …  
    1919        update_option('admin_email', $user_email);
    2020        update_option('blog_public', $public);
     21        update_option('enable_app',$remote);
     22        update_option('enable_xmlrpc',$remote);
     23
    2124        $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
    2225
  • trunk/wp-admin/install.php

    r7979 r8139  
    5454                        <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>
    5555                </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>
    5660        </table>
    5761        <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" />
    … …  
    6973                $admin_email = stripslashes($_POST['admin_email']);
    7074                $public = (int) $_POST['blog_public'];
     75                $remote = (int) $_POST['enable_remotepublishing'];
    7176                // check e-mail address
    7277                if (empty($admin_email)) {
    … …  
    7984
    8085                $wpdb->show_errors();
    81                 $result = wp_install($weblog_title, 'admin', $admin_email, $public);
     86                $result = wp_install($weblog_title, 'admin', $admin_email, $public, $remote);
    8287                extract($result, EXTR_SKIP);
    8388?>
Note: See TracChangeset for help on using the changeset viewer.