-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt the Gutenberg plugin's code to work with FSE infrastructure in Core. #32183
Adapt the Gutenberg plugin's code to work with FSE infrastructure in Core. #32183
Conversation
@@ -9,7 +9,7 @@ | |||
/** | |||
* Base Templates REST API Controller. | |||
*/ | |||
class WP_REST_Templates_Controller extends WP_REST_Controller { | |||
class Gutenberg_REST_Templates_Controller extends WP_REST_Controller { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gutenberg plugin has more logic than core to support file templates... so it needs to use an alternative endpoint.
lib/load.php
Outdated
@@ -74,7 +72,7 @@ function gutenberg_is_experiment_enabled( $name ) { | |||
} | |||
|
|||
if ( ! class_exists( 'WP_Widget_Block' ) ) { | |||
require_once __DIR__ . '/class-wp-widget-block.php'; | |||
// require_once __DIR__ . '/class-wp-widget-block.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is temporary, waiting for #32176
Size Change: 0 B Total Size: 1.86 MB ℹ️ View Unchanged
|
This has been merged into #32176 to see if we can fix all the env/e2e issues. |
…Core. (#32183) * Adapt the Gutenberg plugin's code to work with FSE infrastructure in Core * small changes coming from the merge ticket Co-authored-by: André <nosolosw@users.noreply.github.com>
FSE infrastructure is going to be committed to Core soon and the Gutenberg plugin needs to be adapted in consequence to work for 5.8 and avoid breaking tests. (WordPress/wordpress-develop#1267)