WordPress.org

Make WordPress Core

Ticket #4027: 4027.diff

File 4027.diff, 632 bytes (added by Denis-de-Bernardy, 9 years ago)
  • wp-admin/includes/upgrade.php

     
    3535 */
    3636function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
    3737        global $wp_rewrite;
     38        global $wp_query;
     39        $wpdb->show_errors();
    3840
    3941        wp_check_mysql_version();
    4042        wp_cache_flush();
     
    254256 */
    255257function wp_upgrade() {
    256258        global $wp_current_db_version, $wp_db_version;
     259        global $wp_query;
     260        $wpdb->show_errors();
    257261
    258262        $wp_current_db_version = __get_option('db_version');
    259263