diff --git a/.gitignore b/.gitignore
index 89f03170..5886e439 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,6 @@ wp-cli.yml
# Allow local environment overrides.
.wp-env.override.json
-.env/0-sandbox.php
# Configs from wporg-repo-tools.
.eslintrc.js
@@ -21,6 +20,9 @@ phpcs.xml.dist
/source/wp-content/*
/source/wp-content/themes/*
+# `.env/0-sandbox.php` is tracked, so these files can contain local tweaks that shouldn't be tracked.
+/source/wp-content/mu-plugins/sandbox-*.php
+
# ...except the actual source of this project.
!/source/wp-content/themes
!/source/wp-content/themes/wporg-news-2021
diff --git a/.wp-env.json b/.wp-env.json
index 965418fe..af1176f6 100644
--- a/.wp-env.json
+++ b/.wp-env.json
@@ -6,7 +6,8 @@
"FS_METHOD": "direct",
"WP_ENVIRONMENT_TYPE": "local",
"JETPACK_DEV_DEBUG": true,
- "WPORG_SANDBOXED": true
+ "WPORG_SANDBOXED": true,
+ "WPORG_GIT_MUPLUGINS_DIR": "/var/www/html/vendor/wporg/wporg-mu-plugins/mu-plugins"
},
"core": "WordPress/WordPress#5.8",
"plugins": [
@@ -20,6 +21,8 @@
"./source/wp-content/themes/wporg-news-2021"
],
"mappings": {
- "env": "./env"
+ "env": "./env",
+ "wp-content/mu-plugins/0-sandbox.php": "./env/0-sandbox.php",
+ "vendor/wporg": "./vendor/wporg"
}
}
diff --git a/composer.json b/composer.json
index 51126a4f..7e77b576 100644
--- a/composer.json
+++ b/composer.json
@@ -26,6 +26,10 @@
{
"type": "vcs",
"url": "git@github.com:WordPress/wporg-repo-tools.git"
+ },
+ {
+ "type": "vcs",
+ "url": "git@github.com:WordPress/wporg-mu-plugins.git"
}
],
"require": {},
@@ -37,6 +41,7 @@
"wpackagist-plugin/syntaxhighlighter": "*",
"wpackagist-plugin/wordpress-importer": "*",
"wporg/wporg-repo-tools": "dev-trunk",
+ "wordpress/wporg-mu-plugins": "dev-trunk",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.*",
"phpcompatibility/phpcompatibility-wp": "*",
diff --git a/env/0-sandbox.php b/env/0-sandbox.php
new file mode 100644
index 00000000..617d453b
--- /dev/null
+++ b/env/0-sandbox.php
@@ -0,0 +1,11 @@
+
-
Proudly Powered by WordPress
- -