Skip to content

Commit

Permalink
Merge pull request #5472 from Automattic/staging
Browse files Browse the repository at this point in the history
Production release: v20240416.0
  • Loading branch information
noahtallen authored Apr 16, 2024
2 parents c4d4047 + e5f4934 commit 423f7c4
Show file tree
Hide file tree
Showing 42 changed files with 1,259 additions and 923 deletions.
4 changes: 2 additions & 2 deletions .github/actions/run-wp-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ runs:
fi
- name: Set up PHP
uses: shivammathur/setup-php@2.30.1
uses: shivammathur/setup-php@2.30.2
with:
coverage: ${{ steps.coverage.outputs.coverage }}
ini-values: ${{ steps.coverage.outputs.ini }}
Expand Down Expand Up @@ -126,7 +126,7 @@ runs:
"${PHPUNIT}" ${OPTIONS}
- name: Upload coverage report
uses: codecov/codecov-action@v4.1.0
uses: codecov/codecov-action@v4.2.0
with:
files: ${{ inputs.coverage-file }}
flags: ${{ inputs.coverage-flags }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-summary-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/checkout@v4.1.2

- name: Setup PHP
uses: shivammathur/setup-php@2.30.1
uses: shivammathur/setup-php@2.30.2

- name: Install
uses: ramsey/composer-install@3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-summary-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4.1.2

- name: Setup PHP
uses: shivammathur/setup-php@2.30.1
uses: shivammathur/setup-php@2.30.2

- name: Install
uses: ramsey/composer-install@3.0.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
uses: actions/checkout@v4.1.2

- name: Initialize CodeQL
uses: github/codeql-action/init@v3.24.9
uses: github/codeql-action/init@v3.24.10
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.24.9
uses: github/codeql-action/analyze@v3.24.10
13 changes: 6 additions & 7 deletions .github/workflows/core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
cache-dependency-path: 'wordpress/package-lock.json'

- name: Set up PHP
uses: shivammathur/setup-php@2.30.1
uses: shivammathur/setup-php@2.30.2
with:
php-version: 8.0
coverage: none
Expand Down Expand Up @@ -97,11 +97,11 @@ jobs:

- name: WordPress Docker container debug information
run: |
docker-compose run --rm mysql mysql --version
docker-compose run --rm php php --version
docker-compose run --rm php php -m
docker-compose run --rm php php -i
docker-compose run --rm php locale -a
docker compose run --rm mysql mysql --version
docker compose run --rm php php --version
docker compose run --rm php php -m
docker compose run --rm php php -i
docker compose run --rm php locale -a
working-directory: wordpress

- name: Install WordPress
Expand All @@ -122,6 +122,5 @@ jobs:

- name: Run external HTTP tests
run: |
sed -i 's/ test_multiple_location_headers/ disabled_test_multiple_location_headers/' tests/phpunit/tests/http/base.php
node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http
working-directory: wordpress
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v4.1.2

- name: Set up PHP
uses: shivammathur/setup-php@2.30.1
uses: shivammathur/setup-php@2.30.2
with:
coverage: none
env:
Expand Down
10 changes: 9 additions & 1 deletion 001-core/options-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ function pre_wp_load_alloptions_protections( $pre_loaded_alloptions, $force_cach
}

// 3) Otherwise query the DB for fresh results.
if ( function_exists( 'wp_autoload_values_to_autoload' ) ) {
$values = wp_autoload_values_to_autoload();
} else {
$values = [ 'yes' ];
}

/** @var string[] $values */

$suppress = $wpdb->suppress_errors();
$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" );
$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload IN ( '" . implode( "', '", esc_sql( $values ) ) . "' )" );
$wpdb->suppress_errors( $suppress );

$alloptions = [];
Expand Down
62 changes: 46 additions & 16 deletions __tests__/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"require-dev": {
"phpunit/phpunit": "9.6.18",
"phpunit/phpunit": "9.6.19",
"automattic/vipwpcs": "3.0.0",
"phpcompatibility/phpcompatibility-wp": "2.1.4",
"erusev/parsedown": "1.7.4",
"dms/phpunit-arraysubset-asserts": "0.5.0",
"yoast/phpunit-polyfills": "2.0.0",
"johnpbloch/wordpress-core": "6.4.3",
"wp-phpunit/wp-phpunit": "6.4.2",
"yoast/phpunit-polyfills": "2.0.1",
"johnpbloch/wordpress-core": "6.5.0",
"wp-phpunit/wp-phpunit": "6.5.0",
"wp-cli/wp-cli": "2.10.0"
},
"config": {
Expand Down
51 changes: 27 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 423f7c4

Please sign in to comment.