diff --git a/bin/install-cp-tests.sh b/bin/install-cp-tests.sh index 5586df2..e359a29 100755 --- a/bin/install-cp-tests.sh +++ b/bin/install-cp-tests.sh @@ -41,9 +41,9 @@ CP_RELEASE=y if [[ "$CP_VERSION" == latest ]]; then # Find the version number of the latest release download \ - https://www.classicpress.net/wp-json/cp/v1/latest \ + https://api.github.com/repos/ClassicPress/ClassicPress-release/releases/latest \ "$TMPDIR/cp-latest.json" - CP_VERSION=$(grep -o '"version":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"version":"//') + CP_VERSION=$(grep -o '"tag_name":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"version":"//') if [ -z "$CP_VERSION" ]; then echo "ClassicPress version not detected correctly!"