Skip to content

Commit b3497b7

Browse files
committed
Merge changes published in the Gutenberg plugin "release/8.0" branch
1 parent ce595bd commit b3497b7

435 files changed

Lines changed: 11004 additions & 24771 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ A clear and concise description of what you expected to happen.
2020
**Screenshots**
2121
If applicable, add screenshots to help explain your problem.
2222

23+
**Editor version (please complete the following information):**
24+
- WordPress version: [e.g: 5.3.2]
25+
- Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? [e.g: "gutenberg plugin", "default"]
26+
- If the Gutenberg plugin is installed, which version is it? [e.g., 7.6]
27+
2328
**Desktop (please complete the following information):**
2429
- OS: [e.g. iOS]
2530
- Browser [e.g. chrome, safari]
@@ -32,5 +37,4 @@ If applicable, add screenshots to help explain your problem.
3237
- Version [e.g. 22]
3338

3439
**Additional context**
35-
- Please add the version of Gutenberg you are using in the description.
3640
- To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.

.travis.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ branches:
2424

2525
env:
2626
global:
27-
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
2827
- WP_DEVELOP_DIR: ./wordpress
2928
- LOCAL_SCRIPT_DEBUG: false
30-
- INSTALL_COMPOSER: false
3129
- INSTALL_WORDPRESS: true
3230

3331
# Make sure NodeGit gets the correct C libs.
@@ -89,10 +87,6 @@ install:
8987
npm run env connect
9088
npm run env cli plugin activate gutenberg
9189
fi
92-
- |
93-
if [[ "$INSTALL_COMPOSER" = "true" ]]; then
94-
npm run env docker-run -- php composer install --no-interaction
95-
fi
9690
- |
9791
if [[ "$E2E_ROLE" = "author" ]]; then
9892
npm run env cli -- user create author [email protected] --role=author --user_pass=authpass
@@ -159,59 +153,58 @@ jobs:
159153
- npm run test-unit:native -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"
160154

161155
- name: PHP unit tests
162-
env: INSTALL_COMPOSER=true
163156
script:
164157
- npm run test-php && npm run test-unit-php-multisite
165158

166159
- name: PHP unit tests (PHP 5.6)
167-
env: INSTALL_COMPOSER=true LOCAL_PHP=5.6-fpm
160+
env: LOCAL_PHP=5.6-fpm
168161
script:
169162
- npm run test-php && npm run test-unit-php-multisite
170163

171164
- name: E2E tests (Admin) (1/4)
172-
env: FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
165+
env: FORCE_REDUCED_MOTION=true
173166
script:
174167
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
175168
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 0' < ~/.jest-e2e-tests )
176169

177170
- name: E2E tests (Admin) (2/4)
178-
env: FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
171+
env: FORCE_REDUCED_MOTION=true
179172
script:
180173
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
181174
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 1' < ~/.jest-e2e-tests )
182175

183176
- name: E2E tests (Admin) (3/4)
184-
env: FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
177+
env: FORCE_REDUCED_MOTION=true
185178
script:
186179
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
187180
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 2' < ~/.jest-e2e-tests )
188181

189182
- name: E2E tests (Admin) (4/4)
190-
env: FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
183+
env: FORCE_REDUCED_MOTION=true
191184
script:
192185
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
193186
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 3' < ~/.jest-e2e-tests )
194187

195188
- name: E2E tests (Author) (1/4)
196-
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
189+
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true
197190
script:
198191
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
199192
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 0' < ~/.jest-e2e-tests )
200193

201194
- name: E2E tests (Author) (2/4)
202-
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
195+
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true
203196
script:
204197
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
205198
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 1' < ~/.jest-e2e-tests )
206199

207200
- name: E2E tests (Author) (3/4)
208-
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
201+
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true
209202
script:
210203
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
211204
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 2' < ~/.jest-e2e-tests )
212205

213206
- name: E2E tests (Author) (4/4)
214-
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
207+
env: E2E_ROLE=author FORCE_REDUCED_MOTION=true
215208
script:
216209
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
217210
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 3' < ~/.jest-e2e-tests )

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To learn all about contributing to the Gutenberg project, see the [Contributor G
1212

1313
- Documentation? See the [documentation section](/docs/contributors/document.md).
1414

15-
- Triage? We need help reviewing existing issues to make sure they’re relevant and actionable. Triage is an important contribution because it allows us to work on the highest priority issues. To learn more, please see the [triaging issues section](docs/contributors/repository-management.md#triaging-issues).
15+
- Triage? We need help reviewing existing issues to make sure they’re relevant and actionable. Triage is an important contribution because it allows us to work on the highest priority issues. To learn more, please see the [triaging issues section](docs/contributors/triage.md).
1616

1717
## Guidelines
1818

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,4 @@ This list is manually curated to include valuable contributions by volunteers th
145145
| @akkspros | @passoniate |
146146
| @anthonyledesma | @paranoia1906 |
147147
| @richtabor | @richtabor |
148+
| @mikehaydon | @intelliwolf |

bin/api-docs/update-api-docs.js

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,31 @@ glob.stream( [
203203
// so the tokens must be replaced in sequence to prevent the processes
204204
// from overriding each other.
205205
for ( const [ token, path ] of tokens ) {
206-
await execa(
207-
join( __dirname, '..', '..', 'node_modules', '.bin', 'docgen' ),
208-
[
209-
relative( ROOT_DIR, resolve( dirname( file ), path ) ),
210-
`--output ${ output }`,
211-
'--to-token',
212-
`--use-token "${ token }"`,
213-
'--ignore "/unstable|experimental/i"',
214-
],
215-
{ shell: true }
216-
);
206+
try {
207+
await execa(
208+
join(
209+
__dirname,
210+
'..',
211+
'..',
212+
'node_modules',
213+
'.bin',
214+
'docgen'
215+
),
216+
[
217+
relative( ROOT_DIR, resolve( dirname( file ), path ) ),
218+
`--output ${ output }`,
219+
'--to-token',
220+
`--use-token "${ token }"`,
221+
'--ignore "/unstable|experimental/i"',
222+
],
223+
{ shell: true }
224+
);
225+
} catch ( error ) {
226+
// Disable reason: Errors should log to console.
227+
228+
// eslint-disable-next-line no-console
229+
console.error( error );
230+
process.exit( 1 );
231+
}
217232
}
218233
} );

bin/build-plugin-zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ done
9999

100100
# Run the build.
101101
status "Installing dependencies... 📦"
102-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install
102+
npm install
103103
status "Generating build... 👷‍♀️"
104104
npm run build
105105

0 commit comments

Comments
 (0)