From cf351bbf1e43a64bbdb926171ee362fe4e460c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Mon, 29 Nov 2021 22:56:31 +0100 Subject: [PATCH] Move GS classes and files to lib/compat/5.9 folder --- .github/CODEOWNERS | 16 ++++++++-------- .../class-wp-theme-json-gutenberg.php | 0 .../class-wp-theme-json-resolver-gutenberg.php | 0 .../class-wp-theme-json-schema-gutenberg.php | 0 lib/{ => compat/wordpress-5.9}/theme-i18n.json | 0 lib/{ => compat/wordpress-5.9}/theme.json | 0 lib/load.php | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) rename lib/{ => compat/wordpress-5.9}/class-wp-theme-json-gutenberg.php (100%) rename lib/{ => compat/wordpress-5.9}/class-wp-theme-json-resolver-gutenberg.php (100%) rename lib/{ => compat/wordpress-5.9}/class-wp-theme-json-schema-gutenberg.php (100%) rename lib/{ => compat/wordpress-5.9}/theme-i18n.json (100%) rename lib/{ => compat/wordpress-5.9}/theme.json (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1d898d92aab66f..41811f7fd0fffb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -129,14 +129,14 @@ /packages/env @noahtallen # PHP -/lib @timothybjacobs @spacedmonkey -/lib/global-styles.php @timothybjabocs @spacedmonkey @oandregal -/lib/theme.json @timothybjabocs @spacedmonkey @oandregal -/lib/theme-i18n.json @timothybjabocs @spacedmonkey @oandregal -/lib/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @oandregal -/lib/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @oandregal -/lib/full-site-editing @janw-me -/phpunit/class-wp-theme-json-test.php @oandregal +/lib @timothybjacobs @spacedmonkey +/lib/global-styles.php @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/theme.json @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/theme-i18n.json @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @oandregal +/lib/full-site-editing @janw-me +/phpunit/class-wp-theme-json-test.php @oandregal # Web App /packages/admin-manifest @ellatrix diff --git a/lib/class-wp-theme-json-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php similarity index 100% rename from lib/class-wp-theme-json-gutenberg.php rename to lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php diff --git a/lib/class-wp-theme-json-resolver-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php similarity index 100% rename from lib/class-wp-theme-json-resolver-gutenberg.php rename to lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php diff --git a/lib/class-wp-theme-json-schema-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-schema-gutenberg.php similarity index 100% rename from lib/class-wp-theme-json-schema-gutenberg.php rename to lib/compat/wordpress-5.9/class-wp-theme-json-schema-gutenberg.php diff --git a/lib/theme-i18n.json b/lib/compat/wordpress-5.9/theme-i18n.json similarity index 100% rename from lib/theme-i18n.json rename to lib/compat/wordpress-5.9/theme-i18n.json diff --git a/lib/theme.json b/lib/compat/wordpress-5.9/theme.json similarity index 100% rename from lib/theme.json rename to lib/compat/wordpress-5.9/theme.json diff --git a/lib/load.php b/lib/load.php index b34b9c1acbeb92..1262c56f0dd304 100644 --- a/lib/load.php +++ b/lib/load.php @@ -106,9 +106,9 @@ function gutenberg_is_experiment_enabled( $name ) { // These are used by some FSE features // as well as global styles. -require __DIR__ . '/class-wp-theme-json-schema-gutenberg.php'; -require __DIR__ . '/class-wp-theme-json-gutenberg.php'; -require __DIR__ . '/class-wp-theme-json-resolver-gutenberg.php'; +require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-schema-gutenberg.php'; +require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php'; +require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php'; require __DIR__ . '/full-site-editing/full-site-editing.php'; require __DIR__ . '/full-site-editing/block-templates.php';