Make WordPress Core

Changeset 61733


Ignore:
Timestamp:
02/25/2026 02:27:54 PM (3 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Explicitly enable pretty permalinks on the local development environment.

The wp_install_maybe_enable_pretty_permalinks() function usually enables pretty permalinks during installation, but it relies on a loopback request that may not work on all development environments.

In temporary lieu of fixing the underlying loopback request on all the container images, this switches to explictly enabling permalinks and removes redundant permalink configuration from GitHub Actions workflow files.

See #64227

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-end-to-end-tests.yml

    r61663 r61733  
    101101      - name: Install Playwright browsers
    102102        if: ${{ inputs.install-playwright }}
    103         run: npx playwright install --with-deps
     103        run: npx playwright install --with-deps chromium
    104104
    105105      - name: Build WordPress
  • trunk/.github/workflows/reusable-performance-test-v2.yml

    r61663 r61733  
    228228        run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}"
    229229
    230       - name: Update permalink structure
    231         run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}"
    232 
    233230      - name: Install additional languages
    234231        run: |
  • trunk/.github/workflows/reusable-performance.yml

    r61663 r61733  
    204204        run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}"
    205205
    206       - name: Update permalink structure
    207         run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}"
    208 
    209206      - name: Install additional languages
    210207        run: |
  • trunk/tools/local-env/scripts/install.js

    r61459 r61733  
    4747        const installCommand = process.env.LOCAL_MULTISITE === 'true'  ? 'multisite-install' : 'install';
    4848        wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@example.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` );
     49        wp_cli( `rewrite structure '/%year%/%monthnum%/%postname%/'` );
    4950    } )
    5051    .catch( err => {
Note: See TracChangeset for help on using the changeset viewer.