Skip to content

Commit

Permalink
refactor(v3.5) apply updates from master
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Mar 7, 2024
1 parent f33bbbe commit d99d7dd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/setup-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
$extraPHP = <<< PHP
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'DISABLE_CRON', true );
define( 'DISABLE_WP_CRON', true );
PHP;
$configData->setExtraPHP($extraPHP);
$installation = $installation->configure(
Expand Down
12 changes: 12 additions & 0 deletions includes/cli-server/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@

define('DB_ENGINE', getenv('DB_ENGINE') ?: 'mysql');

// Add a unique request ID to the headers.
$requestId = md5( microtime() );
$_SERVER['REQUEST_ID'] = $requestId;
header( 'X-Request-ID: ' . $requestId );

// Disable the MU upgrade routine.
global $wp_filter;
$wp_filter['do_mu_upgrade'][10][] = [
'accepted_args' => 0,
'function' => '__return_false'
];

if ( file_exists( $root.$path ) ) {

// Enforces trailing slash, keeping links tidy in the admin
Expand Down
3 changes: 3 additions & 0 deletions src/WordPress/Database/MysqlDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ public function start($filename = ''): void
};
}

/**
* @throws Exception
*/
private function buildDruidfiMysqldump(): Mysqldump
{
$dumpSettings = [ 'add-drop-table' => true, 'add-drop-database' => true ];
Expand Down
1 change: 1 addition & 0 deletions tests/webdriver.suite.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ modules:
path: '/'
window_size: false
wait: 5
pageload_timeout: 5
capabilities:
"goog:chromeOptions":
args:
Expand Down

0 comments on commit d99d7dd

Please sign in to comment.