-
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
Remove all PHP code from the Gutenberg plugin #10656
Comments
|
Fatal error: Cannot declare class WP_REST_Search_Controller, because the name is already in use in /var/www/mywordpress/wp-content/plugins/gutenberg/lib/class-wp-rest-search-controller.php on line 0 |
@altrovideo Are you running the |
Yes I'm running WP 5.0 nightly build, I'll wait for Gutenberg 4.1, Thanks @danielbachhuber |
Closing in favor of #11015 |
After WP 5.0 is released and the Gutenberg plugin's minimum-supported version is 5.0, we should remove all PHP code from the plugin. This includes, but isn't limited to:
WP_Block_Type_Registry
,WP_Block_Type
WP_REST_Autosaves_Controller
WP_REST_Block_Renderer_Controller
,WP_REST_Blocks_Controller
WP_REST_Post_Search_Handler
,WP_REST_Search_Controller
,WP_REST_Search_Handler
.lib/rest-api.php
We need to keep this PHP code in Gutenberg in the interim, so it's still possible to install Gutenberg on a
4.9.x
installation.The text was updated successfully, but these errors were encountered: