Skip to content

Commit 7e04d31

Browse files
committed
Merge branch 'trunk' into pr/7414
2 parents 8a7205a + 8316c7d commit 7e04d31

File tree

114 files changed

+2210
-1926
lines changed

Some content is hidden

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

114 files changed

+2210
-1926
lines changed

.github/workflows/phpunit-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ jobs:
202202
matrix:
203203
os: [ ubuntu-24.04 ]
204204
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' ]
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

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,17 @@ module.exports = function(grunt) {
838838
'!**/*.min.js',
839839
'!wp-admin/js/custom-header.js', // Why? We should minify this.
840840
'!wp-admin/js/farbtastic.js',
841+
'!wp-includes/js/wp-emoji-loader.js', // This is a module. See the emoji-loader task below.
841842
]
842843
},
844+
'emoji-loader': {
845+
options: {
846+
module: true,
847+
toplevel: true,
848+
},
849+
src: WORKING_DIR + 'wp-includes/js/wp-emoji-loader.js',
850+
dest: WORKING_DIR + 'wp-includes/js/wp-emoji-loader.min.js',
851+
},
843852
'jquery-ui': {
844853
options: {
845854
// Preserve comments that start with a bang.
@@ -1549,6 +1558,7 @@ module.exports = function(grunt) {
15491558

15501559
grunt.registerTask( 'uglify:all', [
15511560
'uglify:core',
1561+
'uglify:emoji-loader',
15521562
'uglify:jquery-ui',
15531563
'uglify:imgareaselect',
15541564
'uglify:jqueryform',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
"env:reset": "node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-orphans",
185185
"env:install": "node ./tools/local-env/scripts/install.js",
186186
"env:cli": "node ./tools/local-env/scripts/docker.js exec --user wp_php cli wp",
187+
"env:composer": "node ./tools/local-env/scripts/docker.js run -T --rm php composer",
187188
"env:logs": "node ./tools/local-env/scripts/docker.js logs",
188189
"env:pull": "node ./tools/local-env/scripts/docker.js pull",
189190
"test:performance": "wp-scripts test-playwright --config tests/performance/playwright.config.js",

phpcompat.xml.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,22 @@
7676
#############################################################################
7777
-->
7878

79+
<rule ref="PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved">
80+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
81+
</rule>
7982
<rule ref="PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated">
83+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
8084
<exclude-pattern>/PHPMailer/PHPMailer\.php$</exclude-pattern>
8185
</rule>
86+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_runtimeDeprecated">
87+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
88+
</rule>
89+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_gpcDeprecated">
90+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
91+
</rule>
92+
<rule ref="PHPCompatibility.Lists.AssignmentOrder.Affected">
93+
<exclude-pattern>/ID3/module.audio-video.quicktime\.php$</exclude-pattern>
94+
</rule>
8295
<rule ref="PHPCompatibility.Constants.RemovedConstants.intl_idna_variant_2003Deprecated">
8396
<exclude-pattern>/PHPMailer/PHPMailer\.php$</exclude-pattern>
8497
</rule>

0 commit comments

Comments
 (0)