WordPress.org

Make WordPress Core


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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.