WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2008 10:39:57 PM (12 years ago)
Author:
ryan
Message:

More informative error message when remote publishing is disabled. Don't disable if upgrading. Props josephscott. see #7157

File:
1 edited

Legend:

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

    r8187 r8202  
    77
    88if ( !function_exists('wp_install') ) :
    9 function wp_install($blog_title, $user_name, $user_email, $public, $remote) {
     9function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
    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);
    2321
    2422    $guessurl = wp_guess_url();
     
    207205        upgrade_252();
    208206
    209     if ( $wp_current_db_version < 8000 )
     207    if ( $wp_current_db_version < 8201 )
    210208        upgrade_260();
    211209
     
    745743
    746744function upgrade_260() {
    747     populate_roles_260();
     745    if ( $wp_current_db_version < 8000 )
     746        populate_roles_260();
     747
     748    if ( $wp_current_db_version < 8201 ) {
     749        update_option('enable_app', 1);
     750        update_option('enable_xmlrpc', 1);
     751    }
    748752}
    749753
Note: See TracChangeset for help on using the changeset viewer.