Skip to content

Commit 630266f

Browse files
Merge remote-tracking branch 'origin/trunk' into add/heic-canvas-fallback
# Conflicts: # src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
2 parents 71a9e8b + 51a5f4d commit 630266f

280 files changed

Lines changed: 10359 additions & 5871 deletions

File tree

Some content is hidden

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

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ LOCAL_DB_TYPE=mysql
4646
##
4747
# The database version to use.
4848
#
49-
# Defaults to 8.0 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
49+
# Defaults to 9.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
5050
#
5151
# When using `mysql`, see https://hub.docker.com/_/mysql for valid versions.
5252
# When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions.
5353
##
54-
LOCAL_DB_VERSION=8.4
54+
LOCAL_DB_VERSION=9.7
5555

5656
# Whether or not to enable multisite.
5757
LOCAL_MULTISITE=false

.github/workflows/commit-built-file-changes.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
if: ${{ github.repository == 'wordpress/wordpress-develop' }}
4141
timeout-minutes: 10
4242
permissions:
43-
contents: write
43+
# The actual `git push` is authenticated via a dedicated GitHub App installation token
44+
# generated below, so `GITHUB_TOKEN` only needs read access to the triggering workflow's artifacts.
45+
actions: read # Required to list and download the artifact uploaded by the triggering workflow run.
4446
steps:
4547
- name: Download artifact
4648
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -90,21 +92,18 @@ jobs:
9092
id: generate_token
9193
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
9294
env:
93-
GH_APP_ID: ${{ secrets.GH_PR_BUILT_FILES_APP_ID }}
95+
GH_APP_ID: ${{ vars.GH_PR_BUILT_FILES_APP_ID }}
9496
GH_APP_PRIVATE_KEY: ${{ secrets.GH_PR_BUILT_FILES_PRIVATE_KEY }}
9597
run: |
96-
echo "$GH_APP_PRIVATE_KEY" > private-key.pem
97-
9898
# Generate JWT
9999
JWT=$(python3 - <<EOF
100-
import jwt, time
101-
private_key = open("private-key.pem", "r").read()
100+
import jwt, time, os
102101
payload = {
103102
"iat": int(time.time()),
104103
"exp": int(time.time()) + 600, # 10-minute expiration
105-
"iss": $GH_APP_ID
104+
"iss": int(os.environ["GH_APP_ID"]),
106105
}
107-
print(jwt.encode(payload, private_key, algorithm="RS256"))
106+
print(jwt.encode(payload, os.environ["GH_APP_PRIVATE_KEY"], algorithm="RS256"))
108107
EOF
109108
)
110109
@@ -118,9 +117,7 @@ jobs:
118117
-H "Accept: application/vnd.github.v3+json" \
119118
"https://api.github.com/app/installations/$INSTALLATION_ID/access_tokens" | jq -r '.token')
120119
121-
echo "ACCESS_TOKEN=$ACCESS_TOKEN" >> "$GITHUB_ENV"
122-
123-
rm -f private-key.pem
120+
echo "access-token=$ACCESS_TOKEN" >> "$GITHUB_OUTPUT"
124121
125122
- name: Checkout repository
126123
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -130,7 +127,7 @@ jobs:
130127
ref: ${{ github.event.workflow_run.head_branch }}
131128
path: 'pr-repo'
132129
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
133-
token: ${{ env.ACCESS_TOKEN }}
130+
token: ${{ steps.generate_token.outputs.access-token }}
134131
persist-credentials: true
135132

136133
- name: Apply patch
@@ -147,7 +144,7 @@ jobs:
147144
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
148145
working-directory: 'pr-repo'
149146
env:
150-
GH_APP_ID: ${{ secrets.GH_PR_BUILT_FILES_APP_ID }}
147+
GH_APP_ID: ${{ vars.GH_PR_BUILT_FILES_APP_ID }}
151148
run: |
152149
git config user.name "wordpress-develop-pr-bot[bot]"
153150
git config user.email "${GH_APP_ID}+wordpress-develop-pr-bot[bot]@users.noreply.github.com"

.github/workflows/install-testing.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ jobs:
9494
- db-version: '9.3'
9595
- db-version: '9.4'
9696
- db-version: '9.5'
97+
- db-version: '9.6'
9798
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
9899
- php: '7.2'
99-
db-version: '9.6'
100+
db-version: '9.7'
100101
- php: '7.3'
101-
db-version: '9.6'
102+
db-version: '9.7'
102103

103104
services:
104105
database:
@@ -117,7 +118,7 @@ jobs:
117118
118119
steps:
119120
- name: Set up PHP ${{ matrix.php }}
120-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
121+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
121122
with:
122123
php-version: '${{ matrix.php }}'
123124
coverage: none

.github/workflows/local-docker-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
- db-version: '9.3'
109109
- db-version: '9.4'
110110
- db-version: '9.5'
111+
- db-version: '9.6'
111112
# No PHP 8.5 + Memcached support yet.
112113
- php: '8.5'
113114
memcached: true

.github/workflows/phpunit-tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
os: [ ubuntu-24.04 ]
7777
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
7878
db-type: [ 'mysql' ]
79-
db-version: [ '5.7', '8.0', '8.4' ]
79+
db-version: [ '5.7', '8.0', '8.4', '9.7' ]
8080
tests-domain: [ 'example.org' ]
8181
multisite: [ false, true ]
8282
memcached: [ false ]
@@ -209,15 +209,13 @@ jobs:
209209
os: [ ubuntu-24.04 ]
210210
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
211211
db-type: [ 'mysql', 'mariadb' ]
212-
db-version: [ '9.6', '12.1' ]
212+
db-version: [ '12.1' ]
213213
multisite: [ false, true ]
214214
memcached: [ false ]
215215
db-innovation: [ true ]
216216

217217
exclude:
218218
# Exclude version combinations that don't exist.
219-
- db-type: 'mariadb'
220-
db-version: '9.6'
221219
- db-type: 'mysql'
222220
db-version: '12.1'
223221
with:
@@ -283,14 +281,14 @@ jobs:
283281
fail-fast: false
284282
matrix:
285283
php: [ '7.4', '8.4' ]
286-
db-version: [ '8.4', '11.8' ]
284+
db-version: [ '9.7', '11.8' ]
287285
db-type: [ 'mysql', 'mariadb' ]
288286
multisite: [ false ]
289287

290288
include:
291289
# Include one multisite job for each database type.
292290
- php: '8.4'
293-
db-version: '8.4'
291+
db-version: '9.7'
294292
db-type: 'mysql'
295293
multisite: true
296294
- php: '8.4'
@@ -299,13 +297,13 @@ jobs:
299297
multisite: true
300298
# Test with memcached.
301299
- php: '8.4'
302-
db-version: '8.4'
300+
db-version: '9.7'
303301
db-type: 'mysql'
304302
multisite: true
305303
memcached: true
306304
# Run specific test groups once.
307305
- php: '8.4'
308-
db-version: '8.4'
306+
db-version: '9.7'
309307
db-type: 'mysql'
310308
phpunit-test-groups: 'html-api-html5lib-tests'
311309

@@ -314,7 +312,7 @@ jobs:
314312
- db-type: 'mysql'
315313
db-version: '11.8'
316314
- db-type: 'mariadb'
317-
db-version: '8.4'
315+
db-version: '9.7'
318316

319317
with:
320318
php: ${{ matrix.php }}

.github/workflows/reusable-build-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
persist-credentials: false
3636

3737
- name: Set up Node.js
38-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
38+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3939
with:
4040
node-version-file: '.nvmrc'
4141
cache: npm
@@ -53,7 +53,7 @@ jobs:
5353
run: zip -q -r develop.zip wordpress/.
5454

5555
- name: Upload ZIP as a GitHub Actions artifact
56-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
56+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5757
with:
5858
name: wordpress-develop
5959
path: develop.zip

.github/workflows/reusable-check-built-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
persist-credentials: false
4444

4545
- name: Set up Node.js
46-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
46+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4747
with:
4848
node-version-file: '.nvmrc'
4949
cache: npm
@@ -104,7 +104,7 @@ jobs:
104104

105105
# Uploads the diff file as an artifact.
106106
- name: Upload diff file as artifact
107-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
107+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
108108
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
109109
with:
110110
name: pr-built-file-changes

.github/workflows/reusable-coding-standards-javascript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
persist-credentials: false
4141

4242
- name: Set up Node.js
43-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
43+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4444
with:
4545
node-version-file: '.nvmrc'
4646
cache: npm

.github/workflows/reusable-coding-standards-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
persist-credentials: false
5353

5454
- name: Set up PHP
55-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
55+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
5656
with:
5757
php-version: ${{ inputs.php-version }}
5858
coverage: none
@@ -65,7 +65,7 @@ jobs:
6565
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
6666

6767
- name: Cache PHPCS scan cache
68-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
68+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
6969
with:
7070
path: |
7171
.cache/phpcs-src.json

.github/workflows/reusable-end-to-end-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
persist-credentials: false
8383

8484
- name: Set up Node.js
85-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
85+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
8686
with:
8787
node-version-file: '.nvmrc'
8888
cache: npm
@@ -145,7 +145,7 @@ jobs:
145145
run: npm run test:e2e
146146

147147
- name: Archive debug artifacts (screenshots, HTML snapshots)
148-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
148+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
149149
if: always()
150150
with:
151151
name: failures-artifacts${{ inputs.LOCAL_SCRIPT_DEBUG && '-SCRIPT_DEBUG' || '' }}-${{ github.run_id }}

0 commit comments

Comments
 (0)