Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with master repo #1

Merged
merged 122 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
e45d5ff
Fix RadioGroup component example in its readme (#24857)
DietPawel Aug 28, 2020
535c9ea
Refactor BlockMover to use React hooks (#24774)
alexandec Aug 28, 2020
125fc59
Use the postcss-custom-properties config to define fallback colors (#…
jasmussen Aug 28, 2020
3e96dcc
Make the watch rate slower to avoid using a lot of CPU while developp…
youknowriad Aug 28, 2020
6e459ea
Add "Post Comment Author" block (#24824)
david-szabo97 Aug 28, 2020
e215c80
Keep the default CSS variables for npm consumers (#24890)
youknowriad Aug 28, 2020
6b1999e
Migrate existing theme supports to configure the editor to theme.json…
youknowriad Aug 28, 2020
f393474
Add BlockBreadcrumb component readme (#24827)
JustinyAhin Aug 28, 2020
86c6053
Fix trash alignment. (#24889)
jasmussen Aug 28, 2020
cefab03
Fix invalid HTML structure on the widgets screen (#24866)
adamziel Aug 28, 2020
97dc776
remove Gutenberg layouts to be moved to the host app (#24702)
chipsnyder Aug 28, 2020
e6d4483
Fix wp-env start for non-english core sources (#24884)
ixkaito Aug 28, 2020
bc77362
Convert all `px` values in front-facing styles to relative (`em`) uni…
aristath Aug 28, 2020
a4e381b
Add BlockMover component readme (#24851)
JustinyAhin Aug 31, 2020
1930a97
Fixed style flickering caused by the border (#24739)
aktasfatih Aug 31, 2020
ecdcb49
Remove commented-out blank line (#24858)
aristath Aug 31, 2020
fb20b4f
Added a min length of 3 and per_page to 20 to avoid infinite query (#…
mgrenierfarmmedia Aug 31, 2020
0de26c5
Add block inspector component readme (#24929)
JustinyAhin Aug 31, 2020
d37120d
Enable back dropCap for paragraph (#24932)
nosolosw Aug 31, 2020
81d8b25
Rename features.colors to features.color (#24933)
nosolosw Aug 31, 2020
c7dfc62
Create unstable selectors for getting all controlled inner blocks (#2…
noahtallen Aug 31, 2020
b57ae9e
Fix error handling for performance tests on CI (#24925)
youknowriad Aug 31, 2020
26be8c2
[edit-widgets beta] Fix legacy widgets preview (#24861)
adamziel Aug 31, 2020
ab0d01b
Enhancement: Disable tools while code editor mode is enable (#24923)
kishanjasani Aug 31, 2020
8f8078c
Fix Disabled component infinite loop for `a` elements (#24935)
david-szabo97 Aug 31, 2020
6b87d10
Fixes PHP error in `lib/block-supports/align.php` & other undefined $…
aristath Aug 31, 2020
dc4a0b3
Widgets: Remove experimental flag, enable for themes that have not op…
noisysocks Aug 31, 2020
be09692
CustomGradientPicker: Update Type and Angle controls (#23802)
Aug 31, 2020
379719f
useEditorFeature: take block context into account (#24416)
nosolosw Aug 31, 2020
e268e1e
Don't send empty paragraph tags to view on Android (#22561)
cameronvoell Aug 31, 2020
90da808
Bump plugin version to 8.9.0-rc.1
jorgefilipecosta Aug 31, 2020
c47ba60
Correct @since version for block parser package (#24819)
JustinyAhin Aug 31, 2020
970e8e0
Post content: show placeholder if trying to render itself (#24010)
Addison-Stavlo Aug 31, 2020
74ccff1
Mobile - Fix Pullquote block styles (#24936)
Aug 31, 2020
b418bf7
[RNMobile] Remove dev only restriction for pullquote block on Android…
cameronvoell Aug 31, 2020
dda3a9c
Navigation: Fix creating Navigation from pages or menu with HTML in t…
noisysocks Sep 1, 2020
a14796e
Remove redundant type badges in navigation link control (#24885)
kevin940726 Sep 1, 2020
187167b
Add block parent selector component readme (#24962)
JustinyAhin Sep 1, 2020
33c83fa
Use internal libxml errors instead of @suppression (#24677)
lsl Sep 1, 2020
18e102c
Add order/order by support in Query block (#24691)
ntsekouras Sep 1, 2020
97f2756
Update Storybook URL from text to a real link (#24974)
feriforgacs Sep 1, 2020
13f8fda
env: Update docker volumes during wp-env start (#24778)
noahtallen Sep 1, 2020
1ef7d3b
Add option to show icon labels. (#24234)
tellthemachines Sep 2, 2020
e703aee
Display labels instead of icons in top toolbar. (#24304)
tellthemachines Sep 2, 2020
ab5cbfa
Add title attribute to link block. (#24993)
tellthemachines Sep 2, 2020
00f824a
Add drag and drop to List View in Navigation Screen (#23952)
talldan Sep 2, 2020
b96b6e3
Add block inspector virtual bubbling option (#24991)
tellthemachines Sep 2, 2020
ea157ae
Updating Versions in WordPress doc to include 5.5.1 (#24988)
annezazu Sep 2, 2020
87c4dc5
Remove Embeds for Facebook and Instagram (#24472)
mkaz Sep 2, 2020
2d53ad1
Transform multiple heading blocks to list or paragraphs (#24977)
ntsekouras Sep 2, 2020
0ccabe7
Allow sharp gradients. (#24967)
jasmussen Sep 2, 2020
ee36854
api-fetch: simplify the code that executes the handlers (#24999)
jsnajdr Sep 2, 2020
1e5044d
Fix/block parent selector component readme (#24997)
JustinyAhin Sep 2, 2020
61f0064
api-fetch: remove redundant next parameter from middleware calls (#25…
jsnajdr Sep 2, 2020
ba0c086
Update block inspector component readme (#24998)
JustinyAhin Sep 2, 2020
9729f12
Update modularity.md (#25007)
gumacahin Sep 2, 2020
668182c
Fix PHP Notice: Check that the `query` arg exists before using it (#2…
aristath Sep 2, 2020
95e1134
Fix unlinked padding controls JS error (#25000)
youknowriad Sep 2, 2020
e4f2584
Fix issue with gradient swatches stacking badly with scrollbar. (#25002)
jasmussen Sep 2, 2020
2473c1d
Save DOMDocument node instead of root + str_replace (#25020)
sirreal Sep 2, 2020
26fd3cd
Bump plugin version to 8.9.0
jorgefilipecosta Sep 2, 2020
f7d3945
[RNMobile] Correct multiple sliders spacings (#25017)
lukewalczak Sep 2, 2020
430c938
Add drag handle to block toolbar (#24852)
talldan Sep 3, 2020
3e57ffd
Add reusable block icon. (#23552)
jasmussen Sep 3, 2020
d7cea07
Support enabling/disabling custom gradients using theme.json (#24964)
youknowriad Sep 3, 2020
ecb5094
Update README.md (#25024)
adriacobo Sep 3, 2020
3f557de
Fix: rename gradients.custom to gradient.custom (#25040)
nosolosw Sep 3, 2020
459ab7f
Allow disabling custom font sizes using theme.json config (#25038)
youknowriad Sep 3, 2020
b9597d9
Polish horizontal movers. (#25037)
jasmussen Sep 3, 2020
97ec77e
Add padding support to Group block (#24966)
youknowriad Sep 3, 2020
829e762
Allow enabling custom line heights using theme.json (#25043)
youknowriad Sep 3, 2020
45bfcb3
Fix getEntityRecord, return undefined for not available entities (#25…
youknowriad Sep 3, 2020
ef62680
Bump plugin version to 8.9.1
youknowriad Sep 3, 2020
7ee00ad
[RNMobile] Rounded image (#24544)
lukewalczak Sep 3, 2020
6a190cd
Image Block: properly show errors on drag n drop (#25004)
cpapazoglou Sep 3, 2020
b575047
Search Block: Add button, label, and width options (#24666)
apeatling Sep 3, 2020
5270919
Block Editor: Fix Multiple Trailing Inserters for Nested Inner Blocks…
jeyip Sep 3, 2020
2da8da9
Template part: attribute feature parity with group block (#25029)
noahtallen Sep 3, 2020
d62d455
Block Directory: Add an "Install" button when a block type is not fou…
ryelle Sep 3, 2020
a3cd345
Date: Update moment-timezone package (#22866)
ryelle Sep 3, 2020
b1c8026
Use cleaned slug to query for template part post (#25030)
noahtallen Sep 3, 2020
8ba0a42
[Mobile] Add support for full-width/wide alignment options (#24598)
Sep 4, 2020
959542c
Fix Template Part auto-drafting to support sub-directories. (#25063)
Addison-Stavlo Sep 4, 2020
9e69214
[RNMobile] Merge 1.36.0 release to master (#25081)
cameronvoell Sep 4, 2020
e56efc0
Block supports: Fix block attribute (style and class) double-encoding…
sirreal Sep 4, 2020
458277c
Prevent TypeError for projects without a local Prettier configuration…
ocean90 Sep 5, 2020
c06fff0
Allow inserting an h1 using # + space (#25075)
aristath Sep 7, 2020
f2cfa1f
Update changelog files
youknowriad Sep 3, 2020
1897cf5
chore(release): publish
youknowriad Sep 3, 2020
84cbc5f
Fix cover width regression. (#25103)
jasmussen Sep 7, 2020
afc0090
Data: add a comment about why we normalize resolvers to objects with …
jsnajdr Sep 7, 2020
5e77f46
Polish menu item icon locations. (#25106)
jasmussen Sep 7, 2020
612acd3
Improve the block and patterns search algorithm (#25105)
youknowriad Sep 7, 2020
6b95e0d
Fix PHP error when users don't have access to the Appearance menu (#2…
aristath Sep 7, 2020
9ced21b
Add tags support in Query block (#25005)
ntsekouras Sep 7, 2020
353eada
Restore injection of build_dropdown_script_block_core_categories() (#…
westonruter Sep 7, 2020
124eee7
Block supports: Restore root DOMDocument save (#25028)
sirreal Sep 7, 2020
36cf82b
Element: Add and upgrade @types/{react,react-dom} dependencies (#25086)
sirreal Sep 7, 2020
2dd0fb4
Bump plugin version to 8.9.2
youknowriad Sep 7, 2020
750ab48
Add support for advanced menu item properties to Navigation screen (#…
tellthemachines Sep 7, 2020
f947206
Fix Typo in Import Statement (#25125)
redstar504 Sep 8, 2020
31f8a17
Update README.md (#25124)
redstar504 Sep 8, 2020
939aef9
Widgets screen: Add labels for settings button and close button (#25101)
kevin940726 Sep 8, 2020
2407c9e
Use WordPress Menu API (#25132)
dd32 Sep 8, 2020
481ca1b
Fix issue with single block. (#25107)
jasmussen Sep 8, 2020
f899b3e
[RNMobile] Fix toolbar above the keyboard (#24573)
lukewalczak Sep 8, 2020
5eed5c5
Add global styles sidebar at edit site screen (#24250)
nosolosw Sep 8, 2020
54db7e2
Replace accessibilityLabel by label on RadioGroup (#25128)
diegohaz Sep 8, 2020
149849e
fix issue 24539, show external icon on help button (#24622)
leutrimhusaj Sep 8, 2020
d978655
Centralize client side global styles mappings (#25056)
jorgefilipecosta Sep 8, 2020
acc626e
Embed Block: fix crash in isFromWordPress helper if preview.html is f…
jsnajdr Sep 8, 2020
d2bf762
print minified css for global styles (#24924)
aristath Sep 8, 2020
f62d144
Enable custom spacing support using theme.json (#25141)
youknowriad Sep 8, 2020
f8a67f8
Let ID-less [gallery] shortcodes fall to Shortcode block (#25144)
mcsf Sep 8, 2020
0ba1083
Make items in nav view 48px tall, rather than 56px. (#25143)
jasmussen Sep 8, 2020
7874839
Add filtering by author support in Query block (#25149)
ntsekouras Sep 8, 2020
369688a
Docs: Fixes link to ubuntu docker notes (#25060)
mkaz Sep 8, 2020
55edb95
Docs: Update dev environment setup (#24871)
mkaz Sep 8, 2020
65c9f74
Show Classic block contents on load (#25162)
ntsekouras Sep 8, 2020
cd31639
Bump plugin version to 8.9.3
mcsf Sep 8, 2020
86cd404
Bump @storybook/react major version (#25161)
vcanales Sep 8, 2020
bd8bfea
Add a way to change template parts. (#24990)
Addison-Stavlo Sep 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion bin/packages/build-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const BUILD_TASK_BY_EXTENSION = {
makeDir( path.dirname( outputFile ) ),
readFile( file, 'utf8' ),
] );

const builtSass = await renderSass( {
file,
includePaths: [ path.join( PACKAGES_DIR, 'base-styles' ) ],
Expand All @@ -109,6 +108,12 @@ const BUILD_TASK_BY_EXTENSION = {
'animations',
'z-index',
]
// Editor styles should be excluded from the default CSS vars output.
.concat(
file.includes( 'editor-styles.scss' )
? []
: [ 'default-custom-properties' ]
)
.map( ( imported ) => `@import "${ imported }";` )
.join( ' ' ) + contents,
} );
Expand Down
2 changes: 1 addition & 1 deletion bin/packages/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ getPackages().forEach( ( p ) => {
fs.accessSync( srcDir, fs.F_OK );
watch(
path.resolve( p, 'src' ),
{ recursive: true },
{ recursive: true, delay: 500 },
( event, filename ) => {
if ( ! isSourceFile( filename ) ) {
return;
Expand Down
23 changes: 17 additions & 6 deletions bin/plugin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
*/
const program = require( 'commander' );

const catchException = ( command ) => {
return async ( ...args ) => {
try {
await command( ...args );
} catch ( error ) {
console.error( error );
process.exitCode = 1;
}
};
};

/**
* Internal dependencies
*/
Expand All @@ -22,37 +33,37 @@ program
.description(
'Release an RC version of the plugin (supports only rc.1 for now)'
)
.action( releaseRC );
.action( catchException( releaseRC ) );

program
.command( 'release-plugin-stable' )
.alias( 'stable' )
.description( 'Release a stable version of the plugin' )
.action( releaseStable );
.action( catchException( releaseStable ) );

program
.command( 'prepare-packages-stable' )
.alias( 'npm-stable' )
.description(
'Prepares the packages to be published to npm as stable (latest dist-tag, production version)'
)
.action( prepareLatestDistTag );
.action( catchException( prepareLatestDistTag ) );

program
.command( 'prepare-packages-rc' )
.alias( 'npm-rc' )
.description(
'Prepares the packages to be published to npm as RC (next dist-tag, RC version)'
)
.action( prepareNextDistTag );
.action( catchException( prepareNextDistTag ) );

program
.command( 'release-plugin-changelog' )
.alias( 'changelog' )
.option( '-m, --milestone <milestone>', 'Milestone' )
.option( '-t, --token <token>', 'Github token' )
.description( 'Generates a changelog from merged Pull Requests' )
.action( getReleaseChangelog );
.action( catchException( getReleaseChangelog ) );

program
.command( 'performance-tests [branches...]' )
Expand All @@ -65,6 +76,6 @@ program
.description(
'Runs performance tests on two separate branches and outputs the result'
)
.action( runPerformanceTests );
.action( catchException( runPerformanceTests ) );

program.parse( process.argv );
167 changes: 160 additions & 7 deletions changelog.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/architecture/modularity.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function MyApp() {

```php
// myplugin.php
// Exemple of script registration dependending on the "components" and "element packages.
// Example of script registration dependending on the "components" and "element packages.
wp_register_script( 'myscript', 'pathtomyscript.js', array ('wp-components', "wp-element" ) );
```

Expand Down
4 changes: 2 additions & 2 deletions docs/contributors/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ If you don't have a local WordPress environment to load Gutenberg in, we can hel

### Step 1: Installing a Local Environment

The quickest way to get up and running is to use the [`wp-env` command](https://github.com/WordPress/gutenberg/tree/master/packages/env), which is developed within the Gutenberg source repository, and published as `@wordpress/env` to npm. In its default mode, it'll install and run a local WordPress environment for you; however, it's also possible to [configure](https://github.com/WordPress/gutenberg/blob/master/packages/env/README.md#wp-envjson) it to use a pre-existing local WordPress installation.
The quickest way to get up and running is to use the [`wp-env` command](/packages/env/README.md), that is developed within the Gutenberg source repository, and published as `@wordpress/env` to npm. By default, wp-env can install and run a local WordPress environment for you. It is also possible to configure it to use a pre-existing local WordPress installation, [see package documentation](/packages/env/README.md) for configuration details.

If you don't already have it, you'll need to install Docker and Docker Compose in order to use `wp-env`.

To install Docker, follow their instructions here for [Windows 10 Pro](https://docs.docker.com/docker-for-windows/install/), [all other version of Windows](https://docs.docker.com/toolbox/toolbox_install_windows/), [macOS](https://docs.docker.com/docker-for-mac/install/), or [Linux](https://docs.docker.com/v17.12/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script). If running Ubuntu, see these [extended instructions for help and troubleshooting](/docs/contributors/env-ubuntu.md).
To install Docker, follow the instructions for [Windows 10 Pro](https://docs.docker.com/docker-for-windows/install/), [all other version of Windows](https://docs.docker.com/toolbox/toolbox_install_windows/), [macOS](https://docs.docker.com/docker-for-mac/install/), or [Linux](https://docs.docker.com/v17.12/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script). If running Ubuntu, see these [extended instructions for help and troubleshooting](/docs/designers-developers/developers/tutorials/devenv/docker-ubuntu.md).

To install Docker Compose, [follow their instructions here](https://docs.docker.com/compose/install/), be sure to select your operating system for proper instructions.

Expand Down
3 changes: 2 additions & 1 deletion docs/contributors/versions-in-wordpress.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Versions in WordPress

With each WordPress release cycle, various versions of Gutenberg are included. This has created confusion over time as people try to figure out how best to debug problems and report bugs appropriately. To make this easier for everyone to keep track of, this document serves as a canonical list of the Gutenberg versions integrated into each WordPress release. Of note, during the beta period for WordPress releases, additional bug fixes from later Gutenberg releases than those noted are cherry-picked into the WordPress release as necessary.
With each major release of WordPress a new version of Gutenberg is included. This has caused confusion over time as people have tried to figure out how to best debug problems and report bugs appropriately. To make this easier we have made this document to serve as a canonical list of the Gutenberg versions integrated into each major WordPress release. Of note, during the beta period of a WordPress release, additional bug fixes from later Gutenberg releases than those noted are added into the WordPress release where it is needed.

If anything looks incorrect here, please bring it up in #core-editor in [WordPress.org slack](https://make.wordpress.org/chat/).

| Gutenberg Versions | WordPress Version |
| ------------------ | ----------------- |
| 7.6-8.5 | 5.5.1 |
| 7.6-8.5 | 5.5 |
| 6.6-7.5 | 5.4.2 |
| 6.6-7.5 | 5.4.0 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,10 @@ then the nested template part's child blocks will not be returned. This way,
the template block itself is considered part of the parent, but the children
are not.

You can override this behavior with the includeControlledInnerBlocks setting.
So if you call `getBlock( TP, { WPGetBlockSettings: true } )`, it will return
all nested blocks, including all child inner block controllers and their children.

_Parameters_

- _state_ `Object`: Editor state.
- _clientId_ `string`: Block client ID.
- _settings_ `?WPGetBlockSettings`: A settings object.

_Returns_

Expand Down Expand Up @@ -282,8 +277,7 @@ _Returns_

Returns all block objects for the current post being edited as an array in
the order they appear in the post. Note that this will exclude child blocks
of nested inner block controllers unless the `includeControlledInnerBlocks`
setting is set to true.
of nested inner block controllers.

Note: It's important to memoize this selector to avoid return a new instance
on each call. We use the block cache state for each top-level block of the
Expand All @@ -295,7 +289,6 @@ _Parameters_

- _state_ `Object`: Editor state.
- _rootClientId_ `?string`: Optional root client ID of block list.
- _settings_ `?WPGetBlockSettings`: A settings object.

_Returns_

Expand Down
2 changes: 1 addition & 1 deletion docs/designers-developers/developers/data/data-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ _Parameters_

_Returns_

- `(?Object|null)`: Record.
- `?Object`: Record.

<a name="getEntityRecordEdits" href="#getEntityRecordEdits">#</a> **getEntityRecordEdits**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This tutorial was written for Gutenberg version 8.5.
1. [What is needed to create a block-based theme?](/docs/designers-developers/developers/tutorials/block-based-themes/README.md#what-is-needed-to-create-a-block-based-theme)
2. [Creating the theme](/docs/designers-developers/developers/tutorials/block-based-themes/README.md#creating-the-theme)
3. [Creating the templates and template parts](/docs/designers-developers/developers/tutorials/block-based-themes/README.md#creating-the-templates-and-template-parts)
4. [Experimental-theme.json -Global styles](/docs/designers-developers/developers/tutorials/block-based-themes/README.md#experimental-themejson--global-styles)
4. [Experimental-theme.json -Global styles](/docs/designers-developers/developers/tutorials/block-based-themes/README.md#experimental-theme-json-global-styles)
5. [Adding blocks](/docs/designers-developers/developers/tutorials/block-based-themes/block-based-themes-2-adding-blocks.md)

## What is needed to create a block-based theme?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This tutorial covers general concepts and structure for creating basic blocks.

The block editor provides a [components package](/packages/components/README.md) which contains numerous prebuilt components you can use to build your block.

You can visually browse the components and what their implementation looks like using the Storybook tool published at https://wordpress.github.io/gutenberg.
You can visually browse the components and what their implementation looks like using the Storybook tool published at [https://wordpress.github.io/gutenberg](https://wordpress.github.io/gutenberg).

## Additional Tutorials

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# How to setup local WordPress environment on Ubuntu

This article covers setting up the local WordPress development environment using Docker on Ubuntu. The docker binaries included in the Ubuntu repositories (20.04 and earlier) do not support the features needed for the WordPress environment.
This article covers setting up the local WordPress development environment using Docker on Ubuntu.

You can follow these [directions from Docker to install](https://docs.docker.com/install/linux/docker-ce/ubuntu/) or [download the packages manually](https://download.docker.com/linux/ubuntu/dists/disco/pool/stable/amd64/) (download the last version of each and install using: `sudo dpkg -i *.deb`).
For Ubuntu 20.04.1, the standard docker binaries in the repository work as needed:

```
sudo apt install docker.io docker-compose
```

Additionally, you need to install `docker-compose`, you can follow the [directions from Docker](https://docs.docker.com/compose/install/) or simply [download the latest binary](https://github.com/docker/compose/releases) from GitHub releases.
For earlier versions of Ubuntu, the docker binaries included in repositories did not support the features needed for the WordPress environment.

After downloading the binary file `docker-compose-Linux-x86_64`, rename to just `docker-compose` and copy it to `/usr/local/bin` or another spot in your PATH.
- For Ubuntu prior to 20.04.1, follow these [directions from Docker to install](https://docs.docker.com/install/linux/docker-ce/ubuntu/). Additionally `docker-compose` is required, you may need to install separately, see [ Docker compose documentation](https://docs.docker.com/compose/install/).

## Troubleshooting

Expand Down Expand Up @@ -49,7 +53,8 @@ sudo systemctl restart docker.service
After restarting the services, set the environment variable DOCKER_HOST and try starting using:

```
DOCKER_HOST=http://127.0.0.1:2376 npm run wp-env start
export DOCKER_HOST=tcp://127.0.0.1:2376
npm run wp-env start
```

Your environment should be setup at: http://localhost:8889/
Your environment should be setup at: http://localhost:8888/
Loading