Skip to content

Commit 423f7c4

Browse files
authored
Merge pull request #5472 from Automattic/staging
Production release: v20240416.0
2 parents c4d4047 + e5f4934 commit 423f7c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1259
-923
lines changed

.github/actions/run-wp-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ runs:
6161
fi
6262
6363
- name: Set up PHP
64-
uses: shivammathur/[email protected].1
64+
uses: shivammathur/[email protected].2
6565
with:
6666
coverage: ${{ steps.coverage.outputs.coverage }}
6767
ini-values: ${{ steps.coverage.outputs.ini }}
@@ -126,7 +126,7 @@ runs:
126126
"${PHPUNIT}" ${OPTIONS}
127127
128128
- name: Upload coverage report
129-
uses: codecov/codecov-action@v4.1.0
129+
uses: codecov/codecov-action@v4.2.0
130130
with:
131131
files: ${{ inputs.coverage-file }}
132132
flags: ${{ inputs.coverage-flags }}

.github/workflows/changelog-summary-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions/[email protected]
6565

6666
- name: Setup PHP
67-
uses: shivammathur/[email protected].1
67+
uses: shivammathur/[email protected].2
6868

6969
- name: Install
7070
uses: ramsey/[email protected]

.github/workflows/changelog-summary-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/[email protected]
2020

2121
- name: Setup PHP
22-
uses: shivammathur/[email protected].1
22+
uses: shivammathur/[email protected].2
2323

2424
- name: Install
2525
uses: ramsey/[email protected]

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
uses: actions/[email protected]
3333

3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/[email protected].9
35+
uses: github/codeql-action/[email protected].10
3636
with:
3737
languages: ${{ matrix.language }}
3838
config-file: ./.github/codeql-config.yml
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/[email protected].9
41+
uses: github/codeql-action/[email protected].10

.github/workflows/core-tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
cache-dependency-path: 'wordpress/package-lock.json'
6868

6969
- name: Set up PHP
70-
uses: shivammathur/[email protected].1
70+
uses: shivammathur/[email protected].2
7171
with:
7272
php-version: 8.0
7373
coverage: none
@@ -97,11 +97,11 @@ jobs:
9797

9898
- name: WordPress Docker container debug information
9999
run: |
100-
docker-compose run --rm mysql mysql --version
101-
docker-compose run --rm php php --version
102-
docker-compose run --rm php php -m
103-
docker-compose run --rm php php -i
104-
docker-compose run --rm php locale -a
100+
docker compose run --rm mysql mysql --version
101+
docker compose run --rm php php --version
102+
docker compose run --rm php php -m
103+
docker compose run --rm php php -i
104+
docker compose run --rm php locale -a
105105
working-directory: wordpress
106106

107107
- name: Install WordPress
@@ -122,6 +122,5 @@ jobs:
122122

123123
- name: Run external HTTP tests
124124
run: |
125-
sed -i 's/ test_multiple_location_headers/ disabled_test_multiple_location_headers/' tests/phpunit/tests/http/base.php
126125
node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http
127126
working-directory: wordpress

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/[email protected]
2929

3030
- name: Set up PHP
31-
uses: shivammathur/[email protected].1
31+
uses: shivammathur/[email protected].2
3232
with:
3333
coverage: none
3434
env:

001-core/options-api.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@ function pre_wp_load_alloptions_protections( $pre_loaded_alloptions, $force_cach
3939
}
4040

4141
// 3) Otherwise query the DB for fresh results.
42+
if ( function_exists( 'wp_autoload_values_to_autoload' ) ) {
43+
$values = wp_autoload_values_to_autoload();
44+
} else {
45+
$values = [ 'yes' ];
46+
}
47+
48+
/** @var string[] $values */
49+
4250
$suppress = $wpdb->suppress_errors();
43-
$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" );
51+
$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload IN ( '" . implode( "', '", esc_sql( $values ) ) . "' )" );
4452
$wpdb->suppress_errors( $suppress );
4553

4654
$alloptions = [];

__tests__/e2e/package-lock.json

Lines changed: 46 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"require-dev": {
3-
"phpunit/phpunit": "9.6.18",
3+
"phpunit/phpunit": "9.6.19",
44
"automattic/vipwpcs": "3.0.0",
55
"phpcompatibility/phpcompatibility-wp": "2.1.4",
66
"erusev/parsedown": "1.7.4",
77
"dms/phpunit-arraysubset-asserts": "0.5.0",
8-
"yoast/phpunit-polyfills": "2.0.0",
9-
"johnpbloch/wordpress-core": "6.4.3",
10-
"wp-phpunit/wp-phpunit": "6.4.2",
8+
"yoast/phpunit-polyfills": "2.0.1",
9+
"johnpbloch/wordpress-core": "6.5.0",
10+
"wp-phpunit/wp-phpunit": "6.5.0",
1111
"wp-cli/wp-cli": "2.10.0"
1212
},
1313
"config": {

composer.lock

Lines changed: 27 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)