Skip to content

Commit 022f658

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into limit-jobs-for-fork-prs
2 parents 9f378b1 + 3479f1f commit 022f658

63 files changed

Lines changed: 657 additions & 335 deletions

Some content is hidden

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

.github/workflows/install-testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ jobs:
9494
- db-version: '9.0'
9595
- db-version: '9.1'
9696
- db-version: '9.2'
97+
- db-version: '9.3'
9798
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
9899
- php: '7.2'
99-
db-version: '9.3'
100+
db-version: '9.4'
100101
- php: '7.3'
101-
db-version: '9.3'
102+
db-version: '9.4'
102103

103104
services:
104105
database:

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ jobs:
9999
- db-version: '9.0'
100100
- db-version: '9.1'
101101
- db-version: '9.2'
102+
- db-version: '9.3'
102103
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
103104
- php: '7.2'
104-
db-version: '9.3'
105+
db-version: '9.4'
105106
- php: '7.3'
106-
db-version: '9.3'
107+
db-version: '9.4'
107108

108109
with:
109110
os: ${{ matrix.os }}

.github/workflows/phpunit-tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ jobs:
184184
# Because upstream support for innovation releases is dropped when a new one is released (including security updates),
185185
# only the most recent innovation version is tested.
186186
#
187+
# MariaDB does not currently have a supported innovation release.
188+
#
187189
test-innovation-releases:
188190
name: PHP ${{ matrix.php }}
189191
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
@@ -196,23 +198,18 @@ jobs:
196198
matrix:
197199
os: [ ubuntu-24.04 ]
198200
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
199-
db-type: [ 'mysql', 'mariadb' ]
200-
db-version: [ '9.3', '11.7' ]
201+
db-type: [ 'mysql' ]
202+
db-version: [ '9.4' ]
201203
multisite: [ false, true ]
202204
memcached: [ false ]
203205
db-innovation: [ true ]
204206

205207
exclude:
206208
# MySQL 9.0+ will not work on PHP <= 7.3 because mysql_native_password was removed. See https://core.trac.wordpress.org/ticket/61218.
207209
- php: '7.2'
208-
db-version: '9.3'
210+
db-version: '9.4'
209211
- php: '7.3'
210-
db-version: '9.3'
211-
# Exclude version combinations that don't exist.
212-
- db-type: 'mariadb'
213-
db-version: '9.3'
214-
- db-type: 'mysql'
215-
db-version: '11.7'
212+
db-version: '9.4'
216213
with:
217214
os: ${{ matrix.os }}
218215
php: ${{ matrix.php }}

.github/workflows/upgrade-testing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
os: [ 'ubuntu-24.04' ]
6666
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
6767
db-type: [ 'mysql' ]
68-
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
68+
db-version: [ '5.7', '8.0', '8.4', '9.4' ]
6969
wp: [ '6.7', '6.8' ]
7070
multisite: [ false, true ]
7171

@@ -77,9 +77,9 @@ jobs:
7777
db-version: '8.4'
7878
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
7979
- php: '7.2'
80-
db-version: '9.3'
80+
db-version: '9.4'
8181
- php: '7.3'
82-
db-version: '9.3'
82+
db-version: '9.4'
8383
with:
8484
os: ${{ matrix.os }}
8585
php: ${{ matrix.php }}
@@ -188,7 +188,7 @@ jobs:
188188
os: [ 'ubuntu-24.04' ]
189189
php: [ '7.2', '7.3', '7.4' ]
190190
db-type: [ 'mysql' ]
191-
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
191+
db-version: [ '5.7', '8.0', '8.4', '9.4' ]
192192
wp: [ '4.7' ]
193193
multisite: [ false, true ]
194194

@@ -200,9 +200,9 @@ jobs:
200200
db-version: '8.4'
201201
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
202202
- php: '7.2'
203-
db-version: '9.3'
203+
db-version: '9.4'
204204
- php: '7.3'
205-
db-version: '9.3'
205+
db-version: '9.4'
206206
with:
207207
os: ${{ matrix.os }}
208208
php: ${{ matrix.php }}

.version-support-mysql.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"6-9": [
3+
"9.4",
34
"9.3",
45
"9.2",
56
"9.1",

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"require-dev": {
2222
"composer/ca-bundle": "1.5.7",
23-
"squizlabs/php_codesniffer": "3.10.3",
24-
"wp-coding-standards/wpcs": "~3.1.0",
23+
"squizlabs/php_codesniffer": "3.13.2",
24+
"wp-coding-standards/wpcs": "~3.2.0",
2525
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
2626
"yoast/phpunit-polyfills": "^1.1.0"
2727
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"env:clean": "node ./tools/local-env/scripts/docker.js down -v --remove-orphans",
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",
186-
"env:cli": "node ./tools/local-env/scripts/docker.js exec cli wp --allow-root",
186+
"env:cli": "node ./tools/local-env/scripts/docker.js exec --user wp_php cli wp",
187187
"env:logs": "node ./tools/local-env/scripts/docker.js logs",
188188
"env:pull": "node ./tools/local-env/scripts/docker.js pull",
189189
"test:performance": "wp-scripts test-playwright --config tests/performance/playwright.config.js",

src/js/_enqueues/wp/customize/preview.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,28 @@
635635
/**
636636
* Preview changes to custom css.
637637
*
638-
* @param {string} value Custom CSS..
638+
* @param {string} value Custom CSS.
639639
* @return {void}
640640
*/
641641
custom_css: function( value ) {
642-
$( '#wp-custom-css' ).text( value );
642+
var style;
643+
if ( api.settings.theme.isBlockTheme ) {
644+
style = $( 'style#global-styles-inline-css' );
645+
646+
// Forbid milestone comments from appearing in Custom CSS which would break live preview.
647+
value = value.replace( /\/\*(BEGIN|END)_CUSTOMIZER_CUSTOM_CSS\*\//g, '' );
648+
649+
var textContent = style.text().replace(
650+
/(\/\*BEGIN_CUSTOMIZER_CUSTOM_CSS\*\/)((?:.|\s)*?)(\/\*END_CUSTOMIZER_CUSTOM_CSS\*\/)/,
651+
function ( match, beforeComment, oldValue, afterComment ) {
652+
return beforeComment + '\n' + value + '\n' + afterComment;
653+
}
654+
);
655+
style.text( textContent );
656+
} else {
657+
style = $( 'style#wp-custom-css' );
658+
style.text( value );
659+
}
643660
},
644661

645662
/**

src/js/_enqueues/wp/theme.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,12 @@ themes.view.Preview = themes.view.Details.extend({
10111011
this.undelegateEvents();
10121012
this.close();
10131013
}
1014+
1015+
// Return if Ctrl + Shift or Shift key pressed
1016+
if ( event.shiftKey || ( event.ctrlKey && event.shiftKey ) ) {
1017+
return;
1018+
}
1019+
10141020
// The right arrow key, next theme.
10151021
if ( event.keyCode === 39 ) {
10161022
_.once( this.nextTheme() );
@@ -1115,6 +1121,11 @@ themes.view.Themes = wp.Backbone.View.extend({
11151121
return;
11161122
}
11171123

1124+
// Return if Ctrl + Shift or Shift key pressed
1125+
if ( event.shiftKey || ( event.ctrlKey && event.shiftKey ) ) {
1126+
return;
1127+
}
1128+
11181129
// Pressing the right arrow key fires a theme:next event.
11191130
if ( event.keyCode === 39 ) {
11201131
self.overlay.nextTheme();

src/js/media/views/frame/edit-attachments.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ EditAttachments = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.EditAtta
255255
return;
256256
}
257257

258+
// Return if Ctrl + Shift or Shift key pressed
259+
if ( event.shiftKey || ( event.ctrlKey && event.shiftKey ) ) {
260+
return;
261+
}
262+
258263
// The right arrow key.
259264
if ( 39 === event.keyCode ) {
260265
this.nextMediaItem();

0 commit comments

Comments
 (0)