Skip to content

Commit cfc5e2d

Browse files
committed
Merge branch 'trunk' into bugfix/wp_add_id3_tag_data
2 parents 83295f8 + 9156dc3 commit cfc5e2d

File tree

206 files changed

+3592
-2768
lines changed

Some content is hidden

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

206 files changed

+3592
-2768
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ a96fa164b00ed51c7c0481574834cff92ab9b1f0 # [60043]
5959
1aa6da693ad739b78752a55d154cd48cb757b90b # [60047]
6060
d44e1c2ce2dc638e89ed6a1d02b1cfadb8a15fe7 # [60048]
6161
a18719e7ea49ab7ac0091e076840cb7efdf51cc5 # [60049]
62+
63+
# 6.9 Coding Standards
64+
cbb6519119276ceba4279eaee73ab66294ebd820 # [60402]

.github/dependabot.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,65 @@ updates:
127127
- "lodash"
128128
- "moment"
129129
- "underscore"
130+
131+
# Monitor npm dependencies within default themes.
132+
- package-ecosystem: "npm"
133+
directory: "/src/wp-content/themes/twentytwentyone"
134+
schedule:
135+
interval: "weekly"
136+
open-pull-requests-limit: 20
137+
groups:
138+
twentytwentyone-sass-css:
139+
patterns:
140+
- "**browserslist*"
141+
- "autoprefixer"
142+
- "*css*"
143+
- "*sass*"
144+
- "!*stylelint*"
145+
twentytwentyone-eslint:
146+
patterns:
147+
- "**eslint*"
148+
twentytwentyone-stylelint:
149+
patterns:
150+
- "**stylelint*"
151+
twentytwentyone-miscellaneous:
152+
patterns:
153+
- "chokidar-cli"
154+
- "minimist"
155+
- "npm-run-all"
156+
157+
- package-ecosystem: "npm"
158+
directory: "/src/wp-content/themes/twentytwenty"
159+
schedule:
160+
interval: "weekly"
161+
open-pull-requests-limit: 20
162+
groups:
163+
twentytwenty-css:
164+
patterns:
165+
- "**browserslist*"
166+
- "autoprefixer"
167+
- "*css*"
168+
twentytwenty-stylelint:
169+
patterns:
170+
- "*stylelint*"
171+
twentytwenty-miscellaneous:
172+
patterns:
173+
- "concurrently"
174+
- "@wordpress/scripts"
175+
176+
- package-ecosystem: "npm"
177+
directory: "/src/wp-content/themes/twentynineteen"
178+
schedule:
179+
interval: "weekly"
180+
open-pull-requests-limit: 20
181+
groups:
182+
twentynineteen-css-sass:
183+
patterns:
184+
- "**browserslist*"
185+
- "autoprefixer"
186+
- "*css*"
187+
- "*sass*"
188+
twentynineteen-miscellaneous:
189+
patterns:
190+
- "chokidar-cli"
191+
- "npm-run-all"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ on:
2626
- 'composer.*'
2727
# Confirm any changes to relevant workflow files.
2828
- '.github/workflows/check-built-files.yml'
29+
# Changes to the default themes should be handled by the themes workflows.
30+
- '!src/wp-content/themes/twenty**'
2931

3032
# Cancels all previous workflow runs for pull requests that have not completed.
3133
concurrency:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Commit Built File Changes (PRs)
33

44
on:
55
workflow_run:
6-
workflows: [ 'Check Built Files (PRs)' ]
6+
workflows:
7+
- 'Check Built Files (PRs)'
8+
- 'Test Default Themes & Create ZIPs'
79
types:
810
- completed
911

.github/workflows/phpunit-tests.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
#
5454
# Creates a PHPUnit test job for each PHP/MySQL combination.
5555
#
56+
# Though MySQL 5.5 and 5.6 are still supported by WordPress, they are not currently tested here because the Docker
57+
# images do not work. Testing against MariaDB 5.5 provides a reasonable level of MySQL 5.5 testing (see MariaDB matrix
58+
# below for more details).
59+
#
5660
test-with-mysql:
5761
name: PHP ${{ matrix.php }}
5862
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
@@ -124,6 +128,12 @@ jobs:
124128
#
125129
# Creates a PHPUnit test job for each PHP/MariaDB combination.
126130
#
131+
# All LTS versions of MariaDB supported by WordPress with greater than 1% usage according to w.org/stats should be
132+
# tested. The exceptions to this rule are the most recent LTS and version 5.5.
133+
#
134+
# The 5.5 release was intended as a drop-in replacement for MySQL. Because the MySQL 5.5 Docker containers do not
135+
# work, this ensures some level of MySQL 5.5 testing.
136+
#
127137
test-with-mariadb:
128138
name: PHP ${{ matrix.php }}
129139
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
@@ -137,7 +147,7 @@ jobs:
137147
os: [ ubuntu-24.04 ]
138148
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
139149
db-type: [ 'mariadb' ]
140-
db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4' ]
150+
db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4', '11.8' ]
141151
multisite: [ false, true ]
142152
memcached: [ false ]
143153

@@ -146,13 +156,13 @@ jobs:
146156
- os: ubuntu-24.04
147157
php: '8.3'
148158
db-type: 'mariadb'
149-
db-version: '11.4'
159+
db-version: '11.8'
150160
multisite: false
151161
memcached: true
152162
- os: ubuntu-24.04
153163
php: '8.3'
154164
db-type: 'mariadb'
155-
db-version: '11.4'
165+
db-version: '11.8'
156166
multisite: true
157167
memcached: true
158168
with:
@@ -168,11 +178,11 @@ jobs:
168178
#
169179
# Creates PHPUnit test jobs to test MariaDB and MySQL innovation releases.
170180
#
171-
# Though innovation releases are deemed "production grade" and never receive LTS status, they include new features
172-
# and updates that will be included in the next LTS version.
181+
# Though innovation releases are deemed "production grade", they never receive LTS status. However, they include new
182+
# features and updates that will be included in the next LTS version.
173183
#
174-
# Because upstream support for innovation releases gets dropped when a new one is released, only the most recent
175-
# innovation version is tested.
184+
# Because upstream support for innovation releases is dropped when a new one is released (including security updates),
185+
# only the most recent innovation version is tested.
176186
#
177187
test-innovation-releases:
178188
name: PHP ${{ matrix.php }}
@@ -217,6 +227,8 @@ jobs:
217227
#
218228
# Runs specific individual test groups.
219229
#
230+
# These tests are run against the most recent LTS version of MySQL.
231+
#
220232
specific-test-groups:
221233
name: ${{ matrix.phpunit-test-groups }}
222234
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml

.github/workflows/pull-request-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
- All changes will be lost when refreshing the page.
159159
- A fresh instance is created each time the link below is clicked.
160160
- Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
161-
it's possible that the most recent build failed, or has not completed. Check the [list of workflow runs to be sure](https://github.com/WordPress/wordpress-develop/actions/workflows/wordpress-playground.yml).
161+
it's possible that the most recent build failed, or has not completed. Check the [list of workflow runs to be sure](https://github.com/WordPress/wordpress-develop/actions/workflows/test-build-processes.yml).
162162
163163
For more details about these limitations and more, check out the [Limitations page](https://wordpress.github.io/wordpress-playground/limitations/) in the WordPress Playground documentation.
164164

.github/workflows/reusable-cleanup-pull-requests.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,32 @@ jobs:
5050
with:
5151
script: |
5252
const fixedList = "${{ steps.trac-tickets.outputs.fixed_list }}".split(' ').filter(Boolean);
53-
5453
let prNumbers = [];
5554
5655
for (const ticket of fixedList) {
57-
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ ticket }`;
58-
const corePrefix = `Core-${ ticket }`;
59-
const query = `is:pr is:open repo:${ context.repo.owner }/${ context.repo.repo } in:body ${ tracTicketUrl } OR ${ corePrefix }`;
60-
const result = await github.rest.search.issuesAndPullRequests({ q: query });
56+
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ticket}`;
57+
const corePrefix = `Core-${ticket}`;
58+
59+
const query = `
60+
query($searchQuery: String!) {
61+
search(query: $searchQuery, type: ISSUE_ADVANCED, first: 20) {
62+
nodes {
63+
... on PullRequest {
64+
number
65+
state
66+
}
67+
}
68+
}
69+
}
70+
`;
71+
72+
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open in:body ( "${tracTicketUrl}" OR "${corePrefix}" )`;
73+
74+
const result = await github.graphql(query, {
75+
searchQuery,
76+
});
6177
62-
prNumbers = prNumbers.concat(result.data.items.map(pr => pr.number));
78+
prNumbers.push(...result.search.nodes.map(pr => pr.number));
6379
}
6480
6581
return prNumbers;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# A reusable workflow that runs the PHPUnit test suite with the specified configuration.
55
#
6-
# This workflow is used by branches 4.1 through 5.1.
6+
# This workflow is used by branches 4.7 through 5.1.
77
##
88
name: Run PHPUnit tests
99

.github/workflows/reusable-test-local-docker-environment-v1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
run: npm run env:restart
156156

157157
- name: Test a CLI command
158-
run: npm run env:cli wp option get siteurl
158+
run: npm run env:cli option get siteurl
159159

160160
- name: Test logs command
161161
run: npm run env:logs

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,32 @@ jobs:
148148
- name: Build theme
149149
run: npm run build
150150

151+
- name: Check for changes to versioned files
152+
id: built-file-check
153+
if: ${{ github.event_name == 'pull_request' }}
154+
run: |
155+
if git diff --quiet; then
156+
echo "uncommitted_changes=false" >> "$GITHUB_OUTPUT"
157+
else
158+
echo "uncommitted_changes=true" >> "$GITHUB_OUTPUT"
159+
fi
160+
161+
- name: Display changes to versioned files
162+
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
163+
run: git diff
164+
165+
- name: Save diff to a file
166+
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
167+
run: git diff > ./changes.diff
168+
169+
# Uploads the diff file as an artifact.
170+
- name: Upload diff file as artifact
171+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
172+
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
173+
with:
174+
name: pr-built-file-changes
175+
path: src/wp-content/themes/${{ matrix.theme }}/changes.diff
176+
151177
- name: Ensure version-controlled files are not modified or deleted
152178
run: git diff --exit-code
153179

0 commit comments

Comments
 (0)