Make WordPress Core


Ignore:
Timestamp:
05/04/2024 07:23:31 PM (7 months ago)
Author:
johnbillion
Message:

Bootstrap/Load: Add support for custom ports in multisite site addresses.

This allows a Multisite network to use an address that includes a port name, such as example.com:1234, and adds support for this to the local development environment too. You can now run a Multisite installation on the local development environment, for example at localhost:8889.

This also fixes some bugs with running a single site installation on a port, and updates the testing infrastructure so that the whole test suite runs both with and without a port number.

Props djzone, scribu, nacin, ipstenu, F J Kaiser, jeremyfelt, johnjamesjacoby, spacedmonkey, PerS, Clorith, Blackbam, enrico.sorcinelli, Jules Colle, obliviousharmony, desrosj, johnbillion

Fixes #21077, #52088

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests-run.yml

    r57918 r58097  
    4141        type: 'string'
    4242        default: 'phpunit.xml.dist'
     43      tests-domain:
     44        description: 'The domain to use for the tests'
     45        required: false
     46        type: 'string'
     47        default: 'example.org'
    4348      report:
    4449        description: 'Whether to report results to WordPress.org Hosting Tests'
     
    5156  LOCAL_DB_VERSION: ${{ inputs.db-version }}
    5257  LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }}
     58  LOCAL_WP_TESTS_DOMAIN: ${{ inputs.tests-domain }}
    5359  PHPUNIT_CONFIG: ${{ inputs.phpunit-config }}
    5460  PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
     
    7581  # - Submit the test results to the WordPress.org host test results.
    7682  phpunit-tests:
    77     name: PHP ${{ inputs.php }} / ${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }}${{ inputs.memcached && ' with memcached' || '' }}${{ inputs.report && ' (test reporting enabled)' || '' }}
     83    name: PHP ${{ inputs.php }} / ${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }}${{ inputs.memcached && ' with memcached' || '' }}${{ inputs.report && ' (test reporting enabled)' || '' }} ${{ 'example.org' != inputs.tests-domain && inputs.tests-domain || '' }}
    7884    runs-on: ${{ inputs.os }}
    7985    timeout-minutes: 20
Note: See TracChangeset for help on using the changeset viewer.