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

- -
- + diff --git a/source/wp-content/themes/wporg-news-2021/block-template-parts/header.html b/source/wp-content/themes/wporg-news-2021/block-template-parts/header.html index 89a4df19..4ff56fe8 100644 --- a/source/wp-content/themes/wporg-news-2021/block-template-parts/header.html +++ b/source/wp-content/themes/wporg-news-2021/block-template-parts/header.html @@ -1,6 +1 @@ - - - \ No newline at end of file + diff --git a/source/wp-content/themes/wporg-news-2021/footer.php b/source/wp-content/themes/wporg-news-2021/footer.php deleted file mode 100644 index 967b4b79..00000000 --- a/source/wp-content/themes/wporg-news-2021/footer.php +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - diff --git a/source/wp-content/themes/wporg-news-2021/functions.php b/source/wp-content/themes/wporg-news-2021/functions.php index 661da7ac..8af03c45 100644 --- a/source/wp-content/themes/wporg-news-2021/functions.php +++ b/source/wp-content/themes/wporg-news-2021/functions.php @@ -1,6 +1,6 @@ __( 'Primary Navigation', 'wporg' ), ) ); - } /** @@ -69,7 +68,7 @@ function enqueue_assets() { /** * Add Google webfonts. * - * @return $fonts_url + * @return string $fonts_url */ function fonts_url() { if ( ! class_exists( '\WP_Theme_JSON_Resolver_Gutenberg' ) ) { diff --git a/source/wp-content/themes/wporg-news-2021/header.php b/source/wp-content/themes/wporg-news-2021/header.php deleted file mode 100644 index 3f34c917..00000000 --- a/source/wp-content/themes/wporg-news-2021/header.php +++ /dev/null @@ -1,18 +0,0 @@ - -> - - - - - - - -> - - -
-
- -
diff --git a/source/wp-content/themes/wporg-news-2021/index.php b/source/wp-content/themes/wporg-news-2021/index.php deleted file mode 100644 index 62200328..00000000 --- a/source/wp-content/themes/wporg-news-2021/index.php +++ /dev/null @@ -1,2 +0,0 @@ -