From aef6017bec96ea35c14ae778746f47f536a5d569 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 13:07:16 +0000 Subject: [PATCH 1/2] Initial plan From 60496971723e6356502a5ce47e6d13947dfc0a19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 13:09:38 +0000 Subject: [PATCH 2/2] Add version padding for GitHub tag compatibility Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- templates/install-wp-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/install-wp-tests.sh b/templates/install-wp-tests.sh index ca496902..7b2f7cd0 100644 --- a/templates/install-wp-tests.sh +++ b/templates/install-wp-tests.sh @@ -104,6 +104,10 @@ else echo -e "${RED}Error: Latest WordPress version could not be found.${RESET}" exit 1 fi + # The version-check endpoint returns major.minor (e.g., 6.9), but GitHub tags include the patch version (e.g., 6.9.0) + if [[ $LATEST_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then + LATEST_VERSION="${LATEST_VERSION}.0" + fi WP_TESTS_TAG="tags/$LATEST_VERSION" fi