-
Notifications
You must be signed in to change notification settings - Fork 20
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
Missing WP_Block_Type_Registry Class break site - WP 6.0.1 #99
Comments
Looking at the current API endpoint for migration, we need to add
|
That might not be exhaustive as many plugins and themes are adopting this. Can't we scan the theme/plugin for the class or the minimum version to throw an error if the required CP/WP version has the particular class ? #94 does half of this https://developer.wordpress.org/reference/classes/wp_block_type_registry/ came after WP 5.0.0 |
Scanning plugins and themes is a reasonable suggestion but with some major technical barriers. First we would simply swap a curated list of breaking plugins and themes for a list of breaking functions. One other possibility is we simply retire the migration plugin and leave it to users to complete the process via FTP. |
What if we simply scan plugin/theme readme files checking for "requires" tag? It's not perfect, but can provide a basic check for incompatible plugins. I wouldn't retire migration plugin just yet. People do use it. Maybe additional warning for WordPress 6.x can help a bit. User will be more aware of possibly issues. |
Another vote for the "requires" tag! The migration plugin is never going to be perfect but at least that means we're holding developers to their claims! |
Plugin header checks have been in the migration plugin code since version 1.4.0. There is a PR to add the same for themes - I'd have to refresh my memory on that PR. I can only think that the plugin that cause this issue omitted the header. |
@mattyrob Thanks for pointing out the version number. I was using The issue might be valid if we get a way to detect the class requirement in the future. |
I've been thinking about a possible way to scan for problematic functions and have 2 ideas I'm just sharing in case one of them is doable/good that doesn't ruin user experience:
Just ideas I'm throwing out there. Maybe it'll help someone come up with a better solution. |
The plugin returns a warning for moving to from WP 6.0.1 to CP.
However, when the theme/plugin activated is block based, WP_Block_Type_Registry class is missing and throws
This breaks the site and installation until one changes the theme physicall by deleting the block theme and plugins.
WP CLI will not work to change plugins and themes at this stage.
The text was updated successfully, but these errors were encountered: