Skip to content

Commit 42d5822

Browse files
committed
Merge branch 'trunk' into pr/8726
2 parents 0543ef5 + 43e2ff9 commit 42d5822

File tree

285 files changed

+16188
-8533
lines changed

Some content is hidden

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

285 files changed

+16188
-8533
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: 10 additions & 5 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,9 +201,9 @@ 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' ]
205-
db-type: [ 'mysql' ]
206-
db-version: [ '9.4' ]
204+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
205+
db-type: [ 'mysql', 'mariadb' ]
206+
db-version: [ '9.4', '12.0' ]
207207
multisite: [ false, true ]
208208
memcached: [ false ]
209209
db-innovation: [ true ]
@@ -214,6 +214,11 @@ jobs:
214214
db-version: '9.4'
215215
- php: '7.3'
216216
db-version: '9.4'
217+
# Exclude version combinations that don't exist.
218+
- db-type: 'mariadb'
219+
db-version: '9.4'
220+
- db-type: 'mysql'
221+
db-version: '12.0'
217222
with:
218223
os: ${{ matrix.os }}
219224
php: ${{ matrix.php }}

.github/workflows/reusable-phpunit-tests-v1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
8888
runs-on: ${{ inputs.os }}
8989
timeout-minutes: 20
90+
permissions:
91+
contents: read
9092

9193
steps:
9294
- name: Configure environment variables

.github/workflows/reusable-phpunit-tests-v2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single Site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
9090
runs-on: ${{ inputs.os }}
9191
timeout-minutes: 20
92+
permissions:
93+
contents: read
9294

9395
steps:
9496
- name: Configure environment variables

.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
@@ -88,6 +88,12 @@ wp-tests-config.php
8888
/src/wp-content/themes/twentynineteen/node_modules
8989
/src/wp-content/themes/twentytwentyone/node_modules
9090
/src/wp-content/themes/twentytwenty/node_modules
91+
/src/wp-content/themes/twentytwentytwo/node_modules
92+
/src/wp-content/themes/twentytwentyfive/node_modules
93+
94+
# Minified files in bundled themes
95+
/src/wp-content/themes/twentytwentytwo/*.min.css
96+
/src/wp-content/themes/twentytwentyfive/*.min.css
9197

9298
# Operating system specific files
9399
.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: 21 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: {
@@ -838,8 +848,17 @@ module.exports = function(grunt) {
838848
'!**/*.min.js',
839849
'!wp-admin/js/custom-header.js', // Why? We should minify this.
840850
'!wp-admin/js/farbtastic.js',
851+
'!wp-includes/js/wp-emoji-loader.js', // This is a module. See the emoji-loader task below.
841852
]
842853
},
854+
'emoji-loader': {
855+
options: {
856+
module: true,
857+
toplevel: true,
858+
},
859+
src: WORKING_DIR + 'wp-includes/js/wp-emoji-loader.js',
860+
dest: WORKING_DIR + 'wp-includes/js/wp-emoji-loader.min.js',
861+
},
843862
'jquery-ui': {
844863
options: {
845864
// Preserve comments that start with a bang.
@@ -1549,6 +1568,7 @@ module.exports = function(grunt) {
15491568

15501569
grunt.registerTask( 'uglify:all', [
15511570
'uglify:core',
1571+
'uglify:emoji-loader',
15521572
'uglify:jquery-ui',
15531573
'uglify:imgareaselect',
15541574
'uglify:jqueryform',
@@ -1581,6 +1601,7 @@ module.exports = function(grunt) {
15811601
'rtl',
15821602
'cssmin:rtl',
15831603
'cssmin:colors',
1604+
'cssmin:themes',
15841605
'usebanner'
15851606
] );
15861607

0 commit comments

Comments
 (0)