From ef0b73226af0ffeedb961a998679595ff5d5c57a Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 9 Jan 2025 14:37:24 +0400 Subject: [PATCH] Restore default rendering mode for Pages --- lib/compat/wordpress-6.8/post.php | 26 ++++++++++++++++++++++++++ lib/load.php | 1 + 2 files changed, 27 insertions(+) create mode 100644 lib/compat/wordpress-6.8/post.php diff --git a/lib/compat/wordpress-6.8/post.php b/lib/compat/wordpress-6.8/post.php new file mode 100644 index 0000000000000..5032476648899 --- /dev/null +++ b/lib/compat/wordpress-6.8/post.php @@ -0,0 +1,26 @@ + 'template-locked', + ); + } + + return $args; +} +add_action( 'register_page_post_type_args', 'gutenberg_update_page_editor_support' ); diff --git a/lib/load.php b/lib/load.php index b145d44376280..69ba59e371884 100644 --- a/lib/load.php +++ b/lib/load.php @@ -97,6 +97,7 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/compat/wordpress-6.8/preload.php'; require __DIR__ . '/compat/wordpress-6.8/blocks.php'; require __DIR__ . '/compat/wordpress-6.8/functions.php'; +require __DIR__ . '/compat/wordpress-6.8/post.php'; require __DIR__ . '/compat/wordpress-6.8/site-editor.php'; require __DIR__ . '/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php';