Skip to content

Commit

Permalink
Switches to use mappings in wp-env so plugins are not activated by de…
Browse files Browse the repository at this point in the history
…fault
  • Loading branch information
creativecoder committed Jul 3, 2024
1 parent 0c10e45 commit 417c8db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"core": "WordPress/WordPress",
"plugins": [ ".", "./plugins/time-to-read-block" ],
"plugins": [ "." ],
"themes": [ "./test/emptytheme" ],
"mappings": {
"wp-content/plugins/time-to-read-block": "./plugins/time-to-read-block"
},
"env": {
"tests": {
"mappings": {
Expand Down
8 changes: 4 additions & 4 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ New plugins should be added to `.wp-env.json` so that they are available in the
```json
{
...
"plugins": [
".",
"./plugins/PLUGIN-SLUG"
],
"mappings": {
...
"wp-content/plugins/PLUGIN-SLUG": "./plugins/PLUGIN-SLUG"
},
...
}
```
Expand Down

0 comments on commit 417c8db

Please sign in to comment.