WordPress.org

Make WordPress Core

Ticket #35560: 35560.diff

File 35560.diff, 572 bytes (added by jryancard, 16 months ago)
  • src/wp-includes/load.php

    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index a29eed1..88f5bc4 100644
    a b function require_wp_db() { 
    418418                return;
    419419        }
    420420
     421        if ( ! defined( 'DB_USER' ) ) {
     422                define( 'DB_USER', null );
     423        }
     424        if ( ! defined( 'DB_PASSWORD' ) ) {
     425                define( 'DB_PASSWORD', null );
     426        }
     427        if ( ! defined( 'DB_NAME' ) ) {
     428                define( 'DB_NAME', null );
     429        }
     430        if ( ! defined( 'DB_HOST' ) ) {
     431                define( 'DB_HOST', null );
     432        }
     433       
    421434        $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
    422435}
    423436