diff --git a/composer.lock b/composer.lock index 0891d4771..7602f11d4 100644 --- a/composer.lock +++ b/composer.lock @@ -3097,16 +3097,16 @@ }, { "name": "wp-cli/cron-command", - "version": "v2.3.3", + "version": "v2.3.4", "source": { "type": "git", "url": "https://github.com/wp-cli/cron-command.git", - "reference": "c877d87345c2e0f3f7929844d64603bdc116d760" + "reference": "954e5152b5cfedf1222bf45abd8c241b145d429c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/cron-command/zipball/c877d87345c2e0f3f7929844d64603bdc116d760", - "reference": "c877d87345c2e0f3f7929844d64603bdc116d760", + "url": "https://api.github.com/repos/wp-cli/cron-command/zipball/954e5152b5cfedf1222bf45abd8c241b145d429c", + "reference": "954e5152b5cfedf1222bf45abd8c241b145d429c", "shasum": "" }, "require": { @@ -3160,9 +3160,9 @@ "homepage": "https://github.com/wp-cli/cron-command", "support": { "issues": "https://github.com/wp-cli/cron-command/issues", - "source": "https://github.com/wp-cli/cron-command/tree/v2.3.3" + "source": "https://github.com/wp-cli/cron-command/tree/v2.3.4" }, - "time": "2025-11-11T13:30:43+00:00" + "time": "2026-02-13T14:21:27+00:00" }, { "name": "wp-cli/db-command", @@ -3240,20 +3240,20 @@ }, { "name": "wp-cli/embed-command", - "version": "v2.1.0", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/wp-cli/embed-command.git", - "reference": "c95faa486bda28883fd9f0b4702ded2b064061b6" + "reference": "cc10e67d84e0158a96fbc5f48b7652f085cca389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/embed-command/zipball/c95faa486bda28883fd9f0b4702ded2b064061b6", - "reference": "c95faa486bda28883fd9f0b4702ded2b064061b6", + "url": "https://api.github.com/repos/wp-cli/embed-command/zipball/cc10e67d84e0158a96fbc5f48b7652f085cca389", + "reference": "cc10e67d84e0158a96fbc5f48b7652f085cca389", "shasum": "" }, "require": { - "wp-cli/wp-cli": "^2.12" + "wp-cli/wp-cli": "^2.13" }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", @@ -3301,9 +3301,9 @@ "homepage": "https://github.com/wp-cli/embed-command", "support": { "issues": "https://github.com/wp-cli/embed-command/issues", - "source": "https://github.com/wp-cli/embed-command/tree/v2.1.0" + "source": "https://github.com/wp-cli/embed-command/tree/v2.1.1" }, - "time": "2025-11-11T13:30:46+00:00" + "time": "2026-02-12T12:26:05+00:00" }, { "name": "wp-cli/entity-command", @@ -3602,16 +3602,16 @@ }, { "name": "wp-cli/export-command", - "version": "v2.1.14", + "version": "v2.1.15", "source": { "type": "git", "url": "https://github.com/wp-cli/export-command.git", - "reference": "2af32bf12c1bccd6561a215dbbafc2f272647ee8" + "reference": "84a335ca6e4296aff130659642818473a9b0d90d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/export-command/zipball/2af32bf12c1bccd6561a215dbbafc2f272647ee8", - "reference": "2af32bf12c1bccd6561a215dbbafc2f272647ee8", + "url": "https://api.github.com/repos/wp-cli/export-command/zipball/84a335ca6e4296aff130659642818473a9b0d90d", + "reference": "84a335ca6e4296aff130659642818473a9b0d90d", "shasum": "" }, "require": { @@ -3624,7 +3624,7 @@ "wp-cli/extension-command": "^1.2 || ^2", "wp-cli/import-command": "^1 || ^2", "wp-cli/media-command": "^1 || ^2", - "wp-cli/wp-cli-tests": "^4" + "wp-cli/wp-cli-tests": "^5" }, "type": "wp-cli-package", "extra": { @@ -3659,9 +3659,9 @@ "homepage": "https://github.com/wp-cli/export-command", "support": { "issues": "https://github.com/wp-cli/export-command/issues", - "source": "https://github.com/wp-cli/export-command/tree/v2.1.14" + "source": "https://github.com/wp-cli/export-command/tree/v2.1.15" }, - "time": "2025-04-02T15:29:08+00:00" + "time": "2026-02-12T12:26:09+00:00" }, { "name": "wp-cli/extension-command", @@ -4275,20 +4275,20 @@ }, { "name": "wp-cli/rewrite-command", - "version": "v2.0.16", + "version": "v2.0.17", "source": { "type": "git", "url": "https://github.com/wp-cli/rewrite-command.git", - "reference": "84004ff4d14038d06c6fe489807eb09739e62b94" + "reference": "74c8f12fccce7f2bac04fa363ebcf452494c7afc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/rewrite-command/zipball/84004ff4d14038d06c6fe489807eb09739e62b94", - "reference": "84004ff4d14038d06c6fe489807eb09739e62b94", + "url": "https://api.github.com/repos/wp-cli/rewrite-command/zipball/74c8f12fccce7f2bac04fa363ebcf452494c7afc", + "reference": "74c8f12fccce7f2bac04fa363ebcf452494c7afc", "shasum": "" }, "require": { - "wp-cli/wp-cli": "^2.12" + "wp-cli/wp-cli": "^2.13" }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", @@ -4330,9 +4330,9 @@ "homepage": "https://github.com/wp-cli/rewrite-command", "support": { "issues": "https://github.com/wp-cli/rewrite-command/issues", - "source": "https://github.com/wp-cli/rewrite-command/tree/v2.0.16" + "source": "https://github.com/wp-cli/rewrite-command/tree/v2.0.17" }, - "time": "2025-11-11T13:30:58+00:00" + "time": "2026-02-15T11:56:30+00:00" }, { "name": "wp-cli/role-command", @@ -4402,20 +4402,20 @@ }, { "name": "wp-cli/scaffold-command", - "version": "v2.5.2", + "version": "v2.5.3", "source": { "type": "git", "url": "https://github.com/wp-cli/scaffold-command.git", - "reference": "91c93ff2a9f405e2b098e4879e5045372b17f38f" + "reference": "5a690ec1b56ef365ec6c7ec5fef4c6371a0564f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/scaffold-command/zipball/91c93ff2a9f405e2b098e4879e5045372b17f38f", - "reference": "91c93ff2a9f405e2b098e4879e5045372b17f38f", + "url": "https://api.github.com/repos/wp-cli/scaffold-command/zipball/5a690ec1b56ef365ec6c7ec5fef4c6371a0564f6", + "reference": "5a690ec1b56ef365ec6c7ec5fef4c6371a0564f6", "shasum": "" }, "require": { - "wp-cli/wp-cli": "^2.12" + "wp-cli/wp-cli": "^2.13" }, "require-dev": { "wp-cli/extension-command": "^1.2 || ^2", @@ -4462,9 +4462,9 @@ "homepage": "https://github.com/wp-cli/scaffold-command", "support": { "issues": "https://github.com/wp-cli/scaffold-command/issues", - "source": "https://github.com/wp-cli/scaffold-command/tree/v2.5.2" + "source": "https://github.com/wp-cli/scaffold-command/tree/v2.5.3" }, - "time": "2026-01-09T14:41:03+00:00" + "time": "2026-02-13T09:27:25+00:00" }, { "name": "wp-cli/search-replace-command", @@ -4757,16 +4757,16 @@ }, { "name": "wp-cli/widget-command", - "version": "v2.1.12", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/wp-cli/widget-command.git", - "reference": "73084053f7b32d92583e44d870b81f287beea6a9" + "reference": "6f04d7e0129e0fb280cfc4931bbd40478e743871" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/widget-command/zipball/73084053f7b32d92583e44d870b81f287beea6a9", - "reference": "73084053f7b32d92583e44d870b81f287beea6a9", + "url": "https://api.github.com/repos/wp-cli/widget-command/zipball/6f04d7e0129e0fb280cfc4931bbd40478e743871", + "reference": "6f04d7e0129e0fb280cfc4931bbd40478e743871", "shasum": "" }, "require": { @@ -4774,7 +4774,7 @@ }, "require-dev": { "wp-cli/extension-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^4" + "wp-cli/wp-cli-tests": "^5" }, "type": "wp-cli-package", "extra": { @@ -4818,9 +4818,9 @@ "homepage": "https://github.com/wp-cli/widget-command", "support": { "issues": "https://github.com/wp-cli/widget-command/issues", - "source": "https://github.com/wp-cli/widget-command/tree/v2.1.12" + "source": "https://github.com/wp-cli/widget-command/tree/v2.2.0" }, - "time": "2025-04-11T09:29:37+00:00" + "time": "2026-02-12T12:26:33+00:00" }, { "name": "wp-cli/wp-cli", @@ -4828,12 +4828,12 @@ "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "630e9631e68e2cd622b22197995b832d1e2475fd" + "reference": "ac5cb56bdf6b99509455e0160452c478bc4fc1be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/630e9631e68e2cd622b22197995b832d1e2475fd", - "reference": "630e9631e68e2cd622b22197995b832d1e2475fd", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/ac5cb56bdf6b99509455e0160452c478bc4fc1be", + "reference": "ac5cb56bdf6b99509455e0160452c478bc4fc1be", "shasum": "" }, "require": { @@ -4904,7 +4904,7 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2026-02-13T09:49:39+00:00" + "time": "2026-02-25T23:28:24+00:00" }, { "name": "wp-cli/wp-config-transformer", @@ -9286,16 +9286,16 @@ }, { "name": "wp-cli/wp-cli-tests", - "version": "v5.0.9", + "version": "v5.0.10", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli-tests.git", - "reference": "aaa3187d96dd7084bd7f3966d25c963abf5ae3a4" + "reference": "26313e2a3d2328519410f46f490756cc60bdaefc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli-tests/zipball/aaa3187d96dd7084bd7f3966d25c963abf5ae3a4", - "reference": "aaa3187d96dd7084bd7f3966d25c963abf5ae3a4", + "url": "https://api.github.com/repos/wp-cli/wp-cli-tests/zipball/26313e2a3d2328519410f46f490756cc60bdaefc", + "reference": "26313e2a3d2328519410f46f490756cc60bdaefc", "shasum": "" }, "require": { @@ -9374,7 +9374,7 @@ "issues": "https://github.com/wp-cli/wp-cli-tests/issues", "source": "https://github.com/wp-cli/wp-cli-tests" }, - "time": "2026-02-05T09:55:02+00:00" + "time": "2026-02-08T15:51:24+00:00" }, { "name": "wp-coding-standards/wpcs", diff --git a/features/bootstrap.feature b/features/bootstrap.feature index b2ef01e7a..8024e37b4 100644 --- a/features/bootstrap.feature +++ b/features/bootstrap.feature @@ -81,3 +81,17 @@ Feature: Bootstrap WP-CLI Status: Inactive """ And STDERR should be empty + + Scenario: Mustache templates should be resolved correctly when PHAR is renamed without extension + + Given an empty directory + And a new Phar with the same version + And I run `php {PHAR_PATH} core download` + + When I run `cp {PHAR_PATH} wp-renamed` + And I run `php wp-renamed config create --dbname=wordpress --dbuser=user --dbpass=pass --skip-check` + Then STDOUT should contain: + """ + Success: Generated 'wp-config.php' file. + """ + And STDERR should be empty diff --git a/php/boot-phar.php b/php/boot-phar.php index e5f94a262..64fb7e948 100644 --- a/php/boot-phar.php +++ b/php/boot-phar.php @@ -10,7 +10,7 @@ } // Store the path to the Phar early on for `Utils\phar-safe-path()` function. -define( 'WP_CLI_PHAR_PATH', Phar::running( true ) ); +define( 'WP_CLI_PHAR_PATH', Phar::running( false ) ); if ( file_exists( 'phar://wp-cli.phar/php/wp-cli.php' ) ) { define( 'WP_CLI_ROOT', 'phar://wp-cli.phar' );