Skip to content

Commit 2520eb7

Browse files
authored
Merge branch 'WordPress:trunk' into 54915-rtl-inputs
2 parents e8831ce + c734f91 commit 2520eb7

File tree

293 files changed

+23717
-6438
lines changed

Some content is hidden

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

293 files changed

+23717
-6438
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ LOCAL_WP_DEBUG_LOG=true
5959
LOCAL_WP_DEBUG_DISPLAY=true
6060
LOCAL_SCRIPT_DEBUG=true
6161
LOCAL_WP_ENVIRONMENT_TYPE=local
62+
LOCAL_WP_DEVELOPMENT_MODE=core
6263

6364
# The URL to use when running e2e tests.
6465
WP_BASE_URL=http://localhost:${LOCAL_PORT}

.github/workflows/end-to-end-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,16 @@ jobs:
5050
# - Run the E2E tests.
5151
# - Ensures version-controlled files are not modified or deleted.
5252
e2e-tests:
53-
name: E2E Tests
53+
name: E2E Tests with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}
5454
runs-on: ubuntu-latest
5555
permissions:
5656
contents: read
5757
timeout-minutes: 20
5858
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
LOCAL_SCRIPT_DEBUG: [ true, false ]
5963

6064
steps:
6165
- name: Configure environment variables
@@ -105,6 +109,8 @@ jobs:
105109
docker-compose run --rm php locale -a
106110
107111
- name: Install WordPress
112+
env:
113+
LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }}
108114
run: npm run env:install
109115

110116
- name: Run E2E tests

.jshintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
"wp": false,
2525
"export": false,
2626
"module": false,
27-
"require": false
27+
"require": false,
28+
"WorkerGlobalScope": false,
29+
"self": false,
30+
"OffscreenCanvas": false,
31+
"Promise": false
2832
}
2933
}

Gruntfile.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ module.exports = function(grunt) {
11471147
options: {
11481148
patterns: [
11491149
{
1150-
match: new RegExp( '//# sourceMappingURL=.*\\s*' ),
1150+
match: new RegExp( '\/\/# sourceMappingURL=.*\\s*', 'g' ),
11511151
replacement: ''
11521152
}
11531153
]
@@ -1160,6 +1160,14 @@ module.exports = function(grunt) {
11601160
BUILD_DIR + 'wp-includes/js/underscore.js'
11611161
],
11621162
dest: BUILD_DIR + 'wp-includes/js/'
1163+
},
1164+
{
1165+
expand: true,
1166+
flatten: true,
1167+
src: [
1168+
BUILD_DIR + 'wp-includes/js/dist/block-editor.js',
1169+
],
1170+
dest: BUILD_DIR + 'wp-includes/js/dist/'
11631171
}
11641172
]
11651173
}
@@ -1459,7 +1467,11 @@ module.exports = function(grunt) {
14591467
} );
14601468
grunt.file.write(
14611469
SOURCE_DIR + 'wp-includes/blocks/blocks-json.php',
1462-
'<?php return ' + json2php( blocks ) + ';'
1470+
'<?php return ' + json2php.make( {
1471+
linebreak: '\n',
1472+
indent: ' ',
1473+
shortArraySyntax: false
1474+
} )( blocks ) + ';'
14631475
);
14641476
} );
14651477

0 commit comments

Comments
 (0)