WordPress.org

Make WordPress Core

Ticket #41425: 41425.diff

File 41425.diff, 452 bytes (added by bobbingwide, 4 years ago)

Define WP_REPAIRING to avoid database connection error when tables are missing

  • tests/phpunit/includes/install.php

    diff --git a/tests/phpunit/includes/install.php b/tests/phpunit/includes/install.php
    index 38db3ce..5d4d568 100644
    a b tests_reset__SERVER(); 
    2222
    2323$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
    2424
     25define( 'WP_REPAIRING', true );
    2526require_once ABSPATH . '/wp-settings.php';
    2627
    2728require_once ABSPATH . '/wp-admin/includes/upgrade.php';