-
Notifications
You must be signed in to change notification settings - Fork 34
Comparing changes
Open a pull request
base repository: wp-cli/wp-cli-bundle
base: main
head repository: wp-cli/wp-cli-bundle
compare: copilot/fix-wp-config-mustache-file
- 12 commits
- 4 files changed
- 3 contributors
Commits on Feb 15, 2026
-
Configuration menu - View commit details
-
Copy full SHA for f0e78ed - Browse repository at this point
Copy the full SHA f0e78edView commit details -
Fix phar path resolution by using Phar::running(false) for WP_CLI_ROOT
Replace hardcoded 'phar://wp-cli.phar' with dynamic Phar::running(false) to correctly handle renamed phar files. This ensures WP_CLI_ROOT always points to the actual phar stream path, fixing template path resolution when the phar is not named 'wp-cli.phar'. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fecd3fe - Browse repository at this point
Copy the full SHA fecd3feView commit details -
Correctly use Phar::running() parameters for path resolution
Use Phar::running(true) for WP_CLI_ROOT (returns phar:// stream path) and Phar::running(false) for WP_CLI_PHAR_PATH (returns filesystem path). This ensures proper path resolution in phar_safe_path() function. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ccdb297 - Browse repository at this point
Copy the full SHA ccdb297View commit details -
Fix phar_safe_path by using Phar::running(false) for WP_CLI_PHAR_PATH
Keep WP_CLI_ROOT using the hardcoded alias 'phar://wp-cli.phar' to ensure template paths resolve correctly. Only change WP_CLI_PHAR_PATH to use Phar::running(false) which returns the filesystem path without phar:// protocol, preventing phar_safe_path() from creating malformed paths. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for bf3c0cc - Browse repository at this point
Copy the full SHA bf3c0ccView commit details
Commits on Feb 19, 2026
-
Add phar_safe_path override to fix template path resolution
Created php/utils-override.php with fixed phar_safe_path() that replaces full paths with alias 'phar://wp-cli.phar/' instead of bare 'phar://'. Include this override in boot-phar.php after wp-cli.php is loaded. This is a temporary fix until wp-cli/wp-cli#6242 is merged. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 02593d3 - Browse repository at this point
Copy the full SHA 02593d3View commit details
Commits on Feb 20, 2026
-
Use composer patches to fix phar_safe_path in vendor
Removed non-working function override approach. Instead, added cweagans/composer-patches plugin and created a patch file to fix phar_safe_path() in wp-cli/wp-cli vendor code. The patch changes the replacement from bare 'phar://' to 'phar://wp-cli.phar/' alias, ensuring template paths resolve correctly. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 48a982d - Browse repository at this point
Copy the full SHA 48a982dView commit details
Commits on Feb 26, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 80fd8e3 - Browse repository at this point
Copy the full SHA 80fd8e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7ca713 - Browse repository at this point
Copy the full SHA d7ca713View commit details
Commits on Mar 19, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 3275221 - Browse repository at this point
Copy the full SHA 3275221View commit details
Commits on Apr 8, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 023b1ac - Browse repository at this point
Copy the full SHA 023b1acView commit details
Commits on May 25, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 4849abc - Browse repository at this point
Copy the full SHA 4849abcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d3aa8c - Browse repository at this point
Copy the full SHA 2d3aa8cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...copilot/fix-wp-config-mustache-file