Skip to content

Commit

Permalink
CHANGELOG and one debug improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jul 21, 2023
1 parent cbcd652 commit ac9159d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.11.3 - 2023-07-21

- Allow the default database configuration to be customized via environment
variables: `WP_DB_NAME`, `WP_DB_USER`, `WP_DB_PASSWORD`, `WP_DB_HOST`.

## v0.11.2 - 2023-07-21

- Add back-support for Wordpress 6.0 when testing.
Expand Down
8 changes: 4 additions & 4 deletions src/mantle/testing/class-wp-die.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ public static function txt_handler( $message, $title, $args ) {
echo "Mantle can run without a configuration in place but assumes a default set of configuration.\n";
echo "🔍 Check if your database is configured to allow access with the default credentials:\n\n";

echo "DB_NAME: \033[36m" . Utils::DEFAULT_DB_NAME . "\033[0m\n";
echo "DB_USER: \033[36m" . Utils::DEFAULT_DB_USER . "\033[0m\n";
echo "DB_PASSWORD: \033[36m" . ( Utils::DEFAULT_DB_PASSWORD ) . "\033[0m\n";
echo "DB_HOST: \033[36m" . Utils::DEFAULT_DB_HOST . "\033[0m\n";
echo "DB_NAME: \033[36m" . Utils::env( 'WP_DB_NAME', Utils::DEFAULT_DB_NAME ) . "\033[0m\n";
echo "DB_USER: \033[36m" . Utils::env( 'WP_DB_USER', Utils::DEFAULT_DB_USER ) . "\033[0m\n";
echo "DB_PASSWORD: \033[36m" . Utils::env( 'WP_DB_PASSWORD', Utils::DEFAULT_DB_PASSWORD ) . "\033[0m\n";
echo "DB_HOST: \033[36m" . Utils::env( 'WP_DB_HOST', Utils::DEFAULT_DB_HOST ) . "\033[0m\n";

echo "\n";
} else {
Expand Down

0 comments on commit ac9159d

Please sign in to comment.