Skip to content

Update wp-config.php regex to handle strict types declaration - #1250

Open
andyexeter wants to merge 1 commit into
BoldGrid:masterfrom
andyexeter:wp-config-directive-fix
Open

Update wp-config.php regex to handle strict types declaration#1250
andyexeter wants to merge 1 commit into
BoldGrid:masterfrom
andyexeter:wp-config-directive-fix

Insert WP_CACHE after strict_types declaration in wp-config.php

4b7f061
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Jul 2, 2026 in 3m 37s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #1250 Update wp-config.php regex to handle strict types declaration.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has two jobs, running in parallel.

Job PHP OS State
4227.1 7.4 Linux passed
4227.2 PHP: 8.5 Linux passed

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Focal)
Build Configuration
{
  "language": "php",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "services": [
    "mysql"
  ],
  "notifications": {
    "slack": [
      {
        "rooms": [
          {
            "secure": "Me2FCeSQNVpIx7lvf5o9gTP60+WQiaxwDIeTsE9NB6+fHRDwrt5Jju1sTXbEgbB7CDQWKuAL6CouL4ZOoUUtHe00u6D0ifwDhj1M3IMeD3NjnWr2dbvZltHkMTCLbtdfD6F5VLhYWFTSNLS4EQAOuITCi1Ph4H+WcYttaw4ldbauSmPnKRvaLGh6tHG+/zLzwdhlwUVeT3hGtZdZXB2mibxtvdx+fMJIBcd0q+smI7VIMQXKNsZ/BZ8QW/qRO2neWI3CBYigeNwXuvlxYv/UBBgneBaPGYNo3DcwHARPTSwKByyLzbG+fN4ymx7iRioQ0x74Dex16u7BNhyeOdj8E3MxR3wDTlUkwXXDJI2YpBp/jmB3lPpEu+LPUxlBV5d8HuiMSf1g4vc2VBBUypWBjq2wWCyQzuRcKDwiyc60bFKtSCOHIzRwO+hDHLW7INzDedA2W0JYerLEgmlQj7yVB8Ly4dl38Gals/X4+y4gkpOSKyCsvAOePYcPFs+BIUMRVR3kueF3fu/sWGQEDJD2oTljLm45ue/x7ytyQOHVw94Ao0A0sf1G1nMwqmIFT90z137yGrlwoh8vXHeUWxFfPV6TB75+E8QLFjoo0Gs3nzfi//kd7UMlnRKkuF1+/5Hvo3VS3GTo0nO6Xo3dCHT2f4HZdR5PVZqhTGAPxdgORa8="
          }
        ]
      }
    ]
  },
  "install": [
    "composer self-update",
    "yarn run install:deps",
    "bash bin/install-wp-tests.sh wordpress_test root '' localhost"
  ],
  "script": [
    "if [[ ${TRAVIS_PHP_VERSION:0:3} == \"7.4\" ]]; then vendor/phpunit/phpunit/phpunit --debug --verbose --coverage-clover=coverage.xml; else vendor/phpunit/phpunit/phpunit --debug --verbose; fi",
    "composer install --no-dev --no-interaction --prefer-dist -o",
    "find . -name vendor -prune -o -name node_modules -prune -o -name '*.php' -exec php -lf {} \\; > /dev/null"
  ],
  "after_success": [
    "if [[ ${TRAVIS_PHP_VERSION:0:3} == \"7.4\" ]]; then curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov -f coverage.xml; fi"
  ],
  "deploy": [
    {
      "provider": "script",
      "script": "chmod +x ./bin/release.sh && ./bin/release.sh",
      "skip_cleanup": true,
      "on": {
        "tags": true,
        "php": "7.4"
      }
    },
    {
      "provider": "releases",
      "file": [
        "w3-total-cache.zip"
      ],
      "skip_cleanup": true,
      "on": {
        "tags": true,
        "php": "7.4"
      },
      "token": "${GITHUB_TOKEN}"
    }
  ],
  "jobs": {
    "include": [
      {
        "php": "7.4",
        "dist": "focal",
        "before_install": [
          "nvm install 20",
          "nvm use 20"
        ],
        "before_deploy": [
          "yes | gem update --system --force",
          "gem install bundler",
          "gem install faraday-net_http -v '3.3.0'",
          "gem install uri",
          "gem install logger"
        ]
      },
      {
        "name": "PHP: 8.5",
        "language": "ruby",
        "dist": "jammy",
        "before_install": [
          "nvm install 20",
          "nvm use 20",
          "sudo add-apt-repository -y ppa:ondrej/php",
          "sudo apt-get update -q",
          "sudo apt-get install -y php8.5-cli php8.5-common php8.5-mbstring php8.5-xml php8.5-mysql php8.5-curl php8.5-zip",
          "sudo update-alternatives --set php /usr/bin/php8.5",
          "php -v",
          "curl -sS https://getcomposer.org/installer | php",
          "sudo mv composer.phar /usr/local/bin/composer",
          "composer --version"
        ]
      }
    ]
  }
}