From 9db1c091b24a42a7cb952509607e9d298a9e4a44 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Thu, 10 Aug 2023 19:59:07 -0400 Subject: [PATCH] Content: Add blocks page template. The page is not public yet, but adding the template allows for previewing the content in the correct page template it will launch in. This also adds the page to the `$new_theme_pages` list to prevent displaying in-progress content. See #245. --- source/wp-content/mu-plugins/theme-switcher.php | 1 + .../themes/wporg-main-2022/templates/page-blocks.html | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 source/wp-content/themes/wporg-main-2022/templates/page-blocks.html diff --git a/source/wp-content/mu-plugins/theme-switcher.php b/source/wp-content/mu-plugins/theme-switcher.php index bc4f8dd8..d3b30b33 100644 --- a/source/wp-content/mu-plugins/theme-switcher.php +++ b/source/wp-content/mu-plugins/theme-switcher.php @@ -68,6 +68,7 @@ function should_use_new_theme() { '/about/etiquette/', '/about/swag/', '/about/logos/', + '/blocks/', '/remembers/', ); if ( ! in_array( $request_uri, $new_theme_pages ) ) { diff --git a/source/wp-content/themes/wporg-main-2022/templates/page-blocks.html b/source/wp-content/themes/wporg-main-2022/templates/page-blocks.html new file mode 100644 index 00000000..bf17b397 --- /dev/null +++ b/source/wp-content/themes/wporg-main-2022/templates/page-blocks.html @@ -0,0 +1,9 @@ + + + +
+ +
+ + +