Skip to content

Commit b5485c9

Browse files
committed
Merge branch 'trunk' into reverts/53323
2 parents d538d61 + 5347c69 commit b5485c9

File tree

161 files changed

+12255
-6037
lines changed

Some content is hidden

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

161 files changed

+12255
-6037
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,28 @@ updates:
129129
- "underscore"
130130

131131
# Monitor npm dependencies within default themes.
132+
- package-ecosystem: "npm"
133+
directory: "/src/wp-content/themes/twentytwentyfive"
134+
schedule:
135+
interval: "weekly"
136+
open-pull-requests-limit: 20
137+
groups:
138+
twentytwentyfive-css:
139+
patterns:
140+
- "**browserslist*"
141+
- "*css*"
142+
143+
- package-ecosystem: "npm"
144+
directory: "/src/wp-content/themes/twentytwentytwo"
145+
schedule:
146+
interval: "weekly"
147+
open-pull-requests-limit: 20
148+
groups:
149+
twentytwentytwo-css:
150+
patterns:
151+
- "**browserslist*"
152+
- "*css*"
153+
132154
- package-ecosystem: "npm"
133155
directory: "/src/wp-content/themes/twentytwentyone"
134156
schedule:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
db-version: '9.4'
110110
- php: '7.3'
111111
db-version: '9.4'
112+
# No PHP 8.5 + Memcached support yet.
113+
- php: '8.5'
114+
memcached: true
112115

113116
with:
114117
os: ${{ matrix.os }}

.github/workflows/phpunit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
fail-fast: false
7373
matrix:
7474
os: [ ubuntu-24.04 ]
75-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
75+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
7676
db-type: [ 'mysql' ]
7777
db-version: [ '5.7', '8.0', '8.4' ]
7878
tests-domain: [ 'example.org' ]
@@ -149,7 +149,7 @@ jobs:
149149
fail-fast: false
150150
matrix:
151151
os: [ ubuntu-24.04 ]
152-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
152+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
153153
db-type: [ 'mariadb' ]
154154
db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4', '11.8' ]
155155
multisite: [ false, true ]
@@ -201,7 +201,7 @@ jobs:
201201
fail-fast: false
202202
matrix:
203203
os: [ ubuntu-24.04 ]
204-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
204+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
205205
db-type: [ 'mysql', 'mariadb' ]
206206
db-version: [ '9.4', '12.0' ]
207207
multisite: [ false, true ]

.github/workflows/reusable-test-gutenberg-build-process.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
# - Checks out the Gutenberg plugin into the plugins directory.
3535
# - Sets up Node.js.
3636
# - Logs debug information about the GitHub Action runner.
37-
# - Installs Core npm dependencies.
3837
# - Installs Gutenberg npm dependencies.
3938
# - Runs the Gutenberg build process.
39+
# - Installs Core npm dependencies.
4040
# - Builds WordPress to run from the relevant location (src or build).
4141
# - Builds Gutenberg.
4242
# - Ensures version-controlled files are not modified or deleted.
@@ -78,9 +78,6 @@ jobs:
7878
curl --version
7979
git --version
8080
81-
- name: Install Core Dependencies
82-
run: npm ci
83-
8481
- name: Install Gutenberg Dependencies
8582
run: npm ci
8683
working-directory: ${{ env.GUTENBERG_DIRECTORY }}
@@ -89,6 +86,9 @@ jobs:
8986
run: npm run build
9087
working-directory: ${{ env.GUTENBERG_DIRECTORY }}
9188

89+
- name: Install Core Dependencies
90+
run: npm ci
91+
9292
- name: Build WordPress to run from ${{ inputs.directory }}
9393
run: npm run ${{ inputs.directory == 'src' && 'build:dev' || 'build' }}
9494

.github/workflows/test-and-zip-default-themes.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- 'src/wp-content/themes/twentynineteen/**'
1515
- 'src/wp-content/themes/twentytwenty/**'
1616
- 'src/wp-content/themes/twentytwentyone/**'
17+
- 'src/wp-content/themes/twentytwentytwo/**'
18+
- 'src/wp-content/themes/twentytwentyfive/**'
1719
# Changes to this workflow file should always verify success.
1820
- '.github/workflows/test-and-zip-default-themes.yml'
1921
pull_request:
@@ -29,6 +31,8 @@ on:
2931
- 'src/wp-content/themes/twentynineteen/**'
3032
- 'src/wp-content/themes/twentytwenty/**'
3133
- 'src/wp-content/themes/twentytwentyone/**'
34+
- 'src/wp-content/themes/twentytwentytwo/**'
35+
- 'src/wp-content/themes/twentytwentyfive/**'
3236
# Changes to this workflow file should always verify success.
3337
- '.github/workflows/test-and-zip-default-themes.yml'
3438
workflow_dispatch:
@@ -120,6 +124,8 @@ jobs:
120124
fail-fast: false
121125
matrix:
122126
theme: [
127+
'twentytwentyfive',
128+
'twentytwentytwo',
123129
'twentytwentyone',
124130
'twentytwenty',
125131
'twentynineteen',
@@ -221,11 +227,31 @@ jobs:
221227
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
222228
persist-credentials: false
223229

230+
- name: Set up Node.js for themes needing minification
231+
if: matrix.theme == 'twentytwentytwo' || matrix.theme == 'twentytwentyfive'
232+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
233+
with:
234+
node-version-file: '.nvmrc'
235+
cache: npm
236+
cache-dependency-path: src/wp-content/themes/${{ matrix.theme }}/package-lock.json
237+
238+
- name: Install npm dependencies
239+
if: matrix.theme == 'twentytwentytwo' || matrix.theme == 'twentytwentyfive'
240+
run: npm ci
241+
working-directory: src/wp-content/themes/${{ matrix.theme }}
242+
243+
- name: Build theme assets
244+
if: matrix.theme == 'twentytwentytwo' || matrix.theme == 'twentytwentyfive'
245+
run: npm run build
246+
working-directory: src/wp-content/themes/${{ matrix.theme }}
247+
224248
- name: Upload theme ZIP as an artifact
225249
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
226250
with:
227251
name: ${{ matrix.theme }}
228-
path: src/wp-content/themes/${{ matrix.theme }}
252+
path: |
253+
src/wp-content/themes/${{ matrix.theme }}
254+
!src/wp-content/themes/${{ matrix.theme }}/node_modules
229255
if-no-files-found: error
230256
include-hidden-files: true
231257

.github/workflows/upgrade-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
fail-fast: false
6969
matrix:
7070
os: [ 'ubuntu-24.04' ]
71-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
71+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
7272
db-type: [ 'mysql' ]
7373
db-version: [ '5.7', '8.0', '8.4', '9.4' ]
7474
wp: [ '6.7', '6.8' ]

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ wp-tests-config.php
8787
/src/wp-content/themes/twentynineteen/node_modules
8888
/src/wp-content/themes/twentytwentyone/node_modules
8989
/src/wp-content/themes/twentytwenty/node_modules
90+
/src/wp-content/themes/twentytwentytwo/node_modules
91+
/src/wp-content/themes/twentytwentyfive/node_modules
92+
93+
# Minified files in bundled themes
94+
/src/wp-content/themes/twentytwentytwo/*.min.css
95+
/src/wp-content/themes/twentytwentyfive/*.min.css
9096

9197
# Operating system specific files
9298
.DS_Store

.version-support-php.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"8.1",
88
"8.2",
99
"8.3",
10-
"8.4"
10+
"8.4",
11+
"8.5"
1112
],
1213
"6-8": [
1314
"7.2",

Gruntfile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,16 @@ module.exports = function(grunt) {
567567
src: [
568568
'wp-admin/css/colors/*/*.css'
569569
]
570+
},
571+
themes: {
572+
expand: true,
573+
cwd: WORKING_DIR,
574+
dest: WORKING_DIR,
575+
ext: '.min.css',
576+
src: [
577+
'wp-content/themes/twentytwentytwo/style.css',
578+
'wp-content/themes/twentytwentyfive/style.css',
579+
]
570580
}
571581
},
572582
rtlcss: {
@@ -1591,6 +1601,7 @@ module.exports = function(grunt) {
15911601
'rtl',
15921602
'cssmin:rtl',
15931603
'cssmin:colors',
1604+
'cssmin:themes',
15941605
'usebanner'
15951606
] );
15961607

phpcs.xml.dist

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
#############################################################################
230230
SELECTIVE EXCLUSIONS
231231
Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
232-
232+
233233
These exclusions are listed ordered by alphabetic sniff name.
234234
#############################################################################
235235
-->
@@ -266,8 +266,9 @@
266266

267267
<!-- Goto is an effective way to handle errors in decoders which expect valid bytes
268268
without impacting the fast path while avoiding bloating the code with redundant
269-
and risky handling code. Exclude forbidding goto in UTF-8 fallback code. -->
269+
and risky handling code. Exclude forbidding goto in parser code. -->
270270
<exclude-pattern>/wp-includes/compat-utf8\.php</exclude-pattern>
271+
<exclude-pattern>/wp-includes/class-wp-block-processor\.php</exclude-pattern>
271272
</rule>
272273

273274
<!-- Exclude sample config from modernization to prevent breaking CI workflows based on WP-CLI scaffold.

0 commit comments

Comments
 (0)