Skip to content

Commit 2a1d893

Browse files
committed
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develop into feature/add-stylesheet-minification-for-bundled-themes
2 parents 0f0df2f + fe2b33f commit 2a1d893

File tree

144 files changed

+3624
-2397
lines changed

Some content is hidden

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

144 files changed

+3624
-2397
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
@@ -848,8 +848,17 @@ module.exports = function(grunt) {
848848
'!**/*.min.js',
849849
'!wp-admin/js/custom-header.js', // Why? We should minify this.
850850
'!wp-admin/js/farbtastic.js',
851+
'!wp-includes/js/wp-emoji-loader.js', // This is a module. See the emoji-loader task below.
851852
]
852853
},
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+
},
853862
'jquery-ui': {
854863
options: {
855864
// Preserve comments that start with a bang.
@@ -1559,6 +1568,7 @@ module.exports = function(grunt) {
15591568

15601569
grunt.registerTask( 'uglify:all', [
15611570
'uglify:core',
1571+
'uglify:emoji-loader',
15621572
'uglify:jquery-ui',
15631573
'uglify:imgareaselect',
15641574
'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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,28 @@
7676
#############################################################################
7777
-->
7878

79+
<rule ref="PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved">
80+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
81+
</rule>
82+
<rule ref="PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated">
83+
<exclude-pattern>/ID3/getid3\.php$</exclude-pattern>
84+
<exclude-pattern>/PHPMailer/PHPMailer\.php$</exclude-pattern>
85+
</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>
95+
<rule ref="PHPCompatibility.Constants.RemovedConstants.intl_idna_variant_2003Deprecated">
96+
<exclude-pattern>/PHPMailer/PHPMailer\.php$</exclude-pattern>
97+
</rule>
98+
<rule ref="PHPCompatibility.ParameterValues.NewIDNVariantDefault.NotSet">
99+
<exclude-pattern>/PHPMailer/PHPMailer\.php$</exclude-pattern>
100+
</rule>
79101
<rule ref="PHPCompatibility.FunctionUse.NewFunctions.sodium_crypto_sign_keypair_from_secretkey_and_publickeyFound">
80102
<exclude-pattern>/sodium_compat/src/Compat\.php$</exclude-pattern>
81103
</rule>
@@ -85,5 +107,11 @@
85107
<rule ref="PHPCompatibility.FunctionUse.NewFunctions.sodium_unpadFound">
86108
<exclude-pattern>/sodium_compat/src/Compat\.php$</exclude-pattern>
87109
</rule>
110+
<rule ref="PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__serializeFound">
111+
<exclude-pattern>/sodium_compat/src/PHP52/SplFixedArray\.php$</exclude-pattern>
112+
</rule>
113+
<rule ref="PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound">
114+
<exclude-pattern>/sodium_compat/src/PHP52/SplFixedArray\.php$</exclude-pattern>
115+
</rule>
88116

89117
</ruleset>

0 commit comments

Comments
 (0)