Skip to content

Commit 642209e

Browse files
Merge remote-tracking branch 'origin/trunk' into add-dimension-validation-to-sideload
2 parents c57a975 + 51a5f4d commit 642209e

1,040 files changed

Lines changed: 73485 additions & 10956 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/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ Trac ticket: <!-- insert a link to the WordPress Trac ticket here -->
2323

2424
<!--
2525
You are free to use artificial intelligence (AI) tooling to contribute, but you must disclose what tooling you are using and to what extent a pull request has been authored by AI. It is your responsibility to review and take responsibility for what AI generates. See the WordPress AI Guidelines: <https://make.wordpress.org/ai/handbook/ai-guidelines/>.
26+
27+
Example disclosure:
28+
29+
AI assistance: Yes
30+
Tool(s): GitHub Copilot, ChatGPT
31+
Model(s): GPT-5.1
32+
Used for: Initial code skeleton and test suggestions; final implementation and tests were reviewed and edited by me.
2633
-->
2734

2835
---

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ on:
2323
- '.nvmrc'
2424
- 'Gruntfile.js'
2525
- 'webpack.config.js'
26+
- 'tools/gutenberg/**'
27+
- 'tools/vendors/**'
2628
- 'tools/webpack/**'
2729
# These files configure Composer. Changes could affect the outcome.
2830
- 'composer.*'
2931
# Confirm any changes to relevant workflow files.
3032
- '.github/workflows/check-built-files.yml'
33+
- '.github/workflows/reusable-check-built-files.yml'
3134
# Changes to the default themes should be handled by the themes workflows.
3235
- '!src/wp-content/themes/twenty**'
3336

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

Lines changed: 13 additions & 15 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,12 +127,13 @@ 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 }}
131+
persist-credentials: true
134132

135133
- name: Apply patch
136134
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
137135
working-directory: 'pr-repo'
138-
run: git apply ${{ github.workspace }}/changes.diff
136+
run: git apply "$GITHUB_WORKSPACE/changes.diff"
139137

140138
- name: Display changes to versioned files
141139
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
@@ -146,10 +144,10 @@ jobs:
146144
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
147145
working-directory: 'pr-repo'
148146
env:
149-
GH_APP_ID: ${{ secrets.GH_PR_BUILT_FILES_APP_ID }}
147+
GH_APP_ID: ${{ vars.GH_PR_BUILT_FILES_APP_ID }}
150148
run: |
151149
git config user.name "wordpress-develop-pr-bot[bot]"
152-
git config user.email ${{ env.GH_APP_ID }}+wordpress-develop-pr-bot[bot]@users.noreply.github.com
150+
git config user.email "${GH_APP_ID}+wordpress-develop-pr-bot[bot]@users.noreply.github.com"
153151
154152
- name: Stage changes
155153
if: ${{ steps.artifact-check.outputs.exists == 'true' }}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ on:
2828
- '.nvmrc'
2929
- 'Gruntfile.js'
3030
- 'webpack.config.js'
31+
- 'tools/gutenberg/**'
32+
- 'tools/vendors/**'
3133
- 'tools/webpack/**'
3234
# These files configure Composer. Changes could affect the outcome.
3335
- 'composer.*'
@@ -51,7 +53,7 @@ permissions: {}
5153

5254
env:
5355
LOCAL_DIR: build
54-
PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
56+
PUPPETEER_SKIP_DOWNLOAD: true
5557

5658
jobs:
5759
# Runs the end-to-end test suite.

.github/workflows/install-testing.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
uses: ./.github/workflows/reusable-support-json-reader-v1.yml
5050
permissions:
5151
contents: read
52-
secrets: inherit
5352
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
5453
with:
5554
wp-version: ${{ inputs.wp-version }}
@@ -88,22 +87,19 @@ jobs:
8887
- db-version: '5.0'
8988
- db-version: '5.1'
9089
- db-version: '5.5'
91-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
92-
- php: '7.2'
93-
db-version: '8.4'
94-
- php: '7.3'
95-
db-version: '8.4'
9690
# Only test the latest innovation release.
9791
- db-version: '9.0'
9892
- db-version: '9.1'
9993
- db-version: '9.2'
10094
- db-version: '9.3'
10195
- db-version: '9.4'
96+
- db-version: '9.5'
97+
- db-version: '9.6'
10298
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
10399
- php: '7.2'
104-
db-version: '9.5'
100+
db-version: '9.7'
105101
- php: '7.3'
106-
db-version: '9.5'
102+
db-version: '9.7'
107103

108104
services:
109105
database:
@@ -118,11 +114,11 @@ jobs:
118114
-e MYSQL_ROOT_PASSWORD="root"
119115
-e MYSQL_DATABASE="test_db"
120116
--entrypoint sh ${{ matrix.db-type }}:${{ matrix.db-version }}
121-
-c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["7.2", "7.3"]'), matrix.php ) && ' --default-authentication-plugin=mysql_native_password' || '' }}"
117+
-c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3"]'), matrix.php ) && ( matrix.db-version == '8.4' && ' --mysql-native-password=ON --authentication-policy=mysql_native_password' || ' --default-authentication-plugin=mysql_native_password' ) || '' }}"
122118
123119
steps:
124120
- name: Set up PHP ${{ matrix.php }}
125-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
121+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
126122
with:
127123
php-version: '${{ matrix.php }}'
128124
coverage: none

.github/workflows/javascript-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ on:
2626
- '.nvmrc'
2727
- 'Gruntfile.js'
2828
- 'webpack.config.js'
29+
- 'tools/gutenberg/**'
30+
- 'tools/vendors/**'
2931
- 'tools/webpack/**'
3032
# This file configures ESLint. Changes could affect the outcome.
3133
- '.eslintignore'

.github/workflows/javascript-type-checking.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ on:
2121
# These files configure npm. Changes could affect the outcome.
2222
- 'package*.json'
2323
- '.nvmrc'
24+
- '.npmrc'
2425
# This file configures TypeScript. Changes could affect the outcome.
2526
- 'tsconfig.json'
2627
# This directory contains TypeScript definitions. Changes could affect the outcome.
2728
- 'typings/**'
2829
# Confirm any changes to relevant workflow files.
2930
- '.github/workflows/javascript-type-checking.yml'
30-
- '.github/workflows/reusable-javascript-type-checking.yml'
31+
- '.github/workflows/reusable-javascript-type-checking-v1.yml'
3132
workflow_dispatch:
3233

3334
# Cancels all previous workflow runs for pull requests that have not completed.
@@ -45,10 +46,10 @@ jobs:
4546
# Runs JavaScript type checking.
4647
typecheck:
4748
name: JavaScript type checking
48-
uses: ./.github/workflows/reusable-javascript-type-checking.yml
49+
uses: ./.github/workflows/reusable-javascript-type-checking-v1.yml
4950
permissions:
5051
contents: read
51-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
52+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
5253

5354
slack-notifications:
5455
name: Slack Notifications

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
- 'package*.json'
1818
- 'Gruntfile.js'
1919
- 'webpack.config.js'
20+
- 'tools/gutenberg/**'
21+
- 'tools/vendors/**'
2022
- 'tools/webpack/**'
2123
- '.npmrc'
2224
- '.nvmrc'
@@ -77,7 +79,6 @@ jobs:
7779
uses: ./.github/workflows/reusable-support-json-reader-v1.yml
7880
permissions:
7981
contents: read
80-
secrets: inherit
8182
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
8283
with:
8384
wp-version: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
@@ -106,6 +107,8 @@ jobs:
106107
- db-version: '9.2'
107108
- db-version: '9.3'
108109
- db-version: '9.4'
110+
- db-version: '9.5'
111+
- db-version: '9.6'
109112
# No PHP 8.5 + Memcached support yet.
110113
- php: '8.5'
111114
memcached: true

.github/workflows/performance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ on:
2828
- '.nvmrc'
2929
- 'Gruntfile.js'
3030
- 'webpack.config.js'
31+
- 'tools/gutenberg/**'
32+
- 'tools/vendors/**'
3133
- 'tools/webpack/**'
3234
# These files configure Composer. Changes could affect the outcome.
3335
- 'composer.*'

0 commit comments

Comments
 (0)