Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wp-cli/wp-cli-bundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: wp-cli/wp-cli-bundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: copilot/fix-wp-config-mustache-file
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 4 files changed
  • 3 contributors

Commits on Feb 15, 2026

  1. Initial plan

    Copilot committed Feb 15, 2026
    Configuration menu
    Copy the full SHA
    f0e78ed View commit details
    Browse the repository at this point in the history
  2. 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>
    Copilot and swissspidy committed Feb 15, 2026
    Configuration menu
    Copy the full SHA
    fecd3fe View commit details
    Browse the repository at this point in the history
  3. 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>
    Copilot and swissspidy committed Feb 15, 2026
    Configuration menu
    Copy the full SHA
    ccdb297 View commit details
    Browse the repository at this point in the history
  4. 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>
    Copilot and swissspidy committed Feb 15, 2026
    Configuration menu
    Copy the full SHA
    bf3c0cc View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2026

  1. 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>
    Copilot and swissspidy committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    02593d3 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2026

  1. 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>
    Copilot and swissspidy committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    48a982d View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2026

  1. Undo Copilot changes

    swissspidy committed Feb 26, 2026
    Configuration menu
    Copy the full SHA
    80fd8e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7ca713 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2026

  1. Configuration menu
    Copy the full SHA
    3275221 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2026

  1. Configuration menu
    Copy the full SHA
    023b1ac View commit details
    Browse the repository at this point in the history

Commits on May 25, 2026

  1. Configuration menu
    Copy the full SHA
    4849abc View commit details
    Browse the repository at this point in the history
  2. Use PR branch for testing

    swissspidy committed May 25, 2026
    Configuration menu
    Copy the full SHA
    2d3aa8c View commit details
    Browse the repository at this point in the history
Loading