From bfbcd0123a2aaaf81e81a5c37094bf1ceee5eb6b Mon Sep 17 00:00:00 2001 From: Brian DiChiara Date: Thu, 14 Nov 2024 07:10:08 -0700 Subject: [PATCH] v1.0.10: Version bump and change log update --- README.md | 4 ++++ bin/composer-scripts/ProjectEvents/PostInstallScript.php | 4 ++-- packages.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9bc6835e..1699e298 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,10 @@ ddev delete project-name -O -y && cd ../ && rm -rf project-name ## Changelog +### v1.0.10 +* Fixed a bug preventing WordPress Database install. +* Some relatively harmless error message suppression. + ### v1.0.9 * Alternative method for identifying elements on dark background * Cleanup Navigation Container component, moved styles into CSS file. diff --git a/bin/composer-scripts/ProjectEvents/PostInstallScript.php b/bin/composer-scripts/ProjectEvents/PostInstallScript.php index 397ee1c6..337e799d 100644 --- a/bin/composer-scripts/ProjectEvents/PostInstallScript.php +++ b/bin/composer-scripts/ProjectEvents/PostInstallScript.php @@ -265,7 +265,7 @@ private static function deleteCorePlugins(): void { * @return void */ private static function deletePlugin( string $plugin ): void { - if ( false === shell_exec( sprintf( 'wp plugin is-installed %s', escapeshellarg( $plugin ) ) ) ) { + if ( false === shell_exec( sprintf( 'wp plugin is-installed %s >/dev/null 2>&1', escapeshellarg( $plugin ) ) ) ) { return; } @@ -495,7 +495,7 @@ private static function updateSiteDescription(): void { */ private static function activateTheme(): void { $slug = self::$env['PROJECT_SLUG'] ?? basename( self::$env['VITE_PROJECT_DIR'] ) ?? ''; - if ( ! $slug || false === shell_exec( sprintf( 'wp theme is-installed %s', escapeshellarg( $slug ) ) ) ) { + if ( ! $slug || false === shell_exec( sprintf( 'wp theme is-installed %s >/dev/null 2>&1', escapeshellarg( $slug ) ) ) ) { self::writeWarning( 'Skipping theme activation. Theme "' . $slug . '" not found.' ); return; } diff --git a/packages.json b/packages.json index 959947bc..85273752 100644 --- a/packages.json +++ b/packages.json @@ -1,7 +1,7 @@ { "package": { "name": "viget/wordpress-site-starter", - "version": "1.0.9", + "version": "1.0.10", "source": { "url": "/root/path/not/relative/path/to/wordpress-site-starter/.git", "type": "git",