Make WordPress Core


Ignore:
Timestamp:
12/22/2007 05:45:59 PM (19 years ago)
Author:
ryan
Message:

Show DB errors if WP_DEBUG and if installing. see #5473

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-admin/install.php

    r6444 r6470  
    6767                break;
    6868        case 2:
    69           if ( !empty($wpdb->error) )
    70                 wp_die($wpdb->error->get_error_message());
    71         display_header();       
     69                if ( !empty($wpdb->error) )
     70                        wp_die($wpdb->error->get_error_message());
     71
     72                display_header();       
    7273                // Fill in the data we gathered
    7374                $weblog_title = stripslashes($_POST['weblog_title']);
    … …  
    8384                }
    8485
    85         $result = wp_install($weblog_title, 'admin', $admin_email, $public);
    86         extract($result, EXTR_SKIP);
     86                $wpdb->show_errors();
     87                $result = wp_install($weblog_title, 'admin', $admin_email, $public);
     88                extract($result, EXTR_SKIP);
    8789?>
    8890
Note: See TracChangeset for help on using the changeset viewer.