Changeset 1114

Show
Ignore:
Timestamp:
10/21/07 09:06:08 (1 year ago)
Author:
donncha
Message:

Enable xmlrpc posting by default
User must be logged in, props Gianluca.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/index-install.php

    r1104 r1114  
    369369        $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_user_id', '1')" ); 
    370370        $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'registration', 'none')" ); 
    371         $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'xmlrpc_active', 'no')" ); 
     371        $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'xmlrpc_active', 'yes')" ); 
    372372        $wpdb->query( "INSERT INTO ".$wpdb->site." ( id, domain, path ) VALUES ( NULL, '$domain', '$base' )" ); 
    373373        $wpdb->query( "INSERT INTO " . $wpdb->sitecategories . " ( cat_ID, cat_name, category_nicename, last_updated ) VALUES (1, 'Uncategorized', 'uncategorized', NOW())" ); 
  • trunk/wp-admin/wpmu-options.php

    r1092 r1114  
    7575                                        <?php  
    7676                                        if( !get_site_option('xmlrpc_active') )  
    77                                                 update_site_option( 'xmlrpc_active', 'no' );  
     77                                                update_site_option( 'xmlrpc_active', 'yes' );  
    7878                                        ?>  
    7979                                        <td> 
  • trunk/wp-signup.php

    r1068 r1114  
    202202function validate_another_blog_signup() { 
    203203        global $current_user, $blog_id, $blog_title, $errors, $domain, $path; 
     204        if( !is_user_logged_in() ) { 
     205                die(); 
     206        } 
    204207 
    205208        $result = validate_blog_form();