[wp-trac] [WordPress Trac] #59718: Short-term (WP 6.4) hotfix to prevent fatal error in standalone Gutenberg (<16.5)
WordPress Trac
noreply at wordpress.org
Tue Oct 24 14:41:49 UTC 2023
#59718: Short-term (WP 6.4) hotfix to prevent fatal error in standalone Gutenberg
(<16.5)
-----------------------------+-----------------------------
Reporter: rebasaurus | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version:
Severity: critical | Keywords:
Focuses: |
-----------------------------+-----------------------------
WP 6.4 is not compatible with older versions of standalone Gutenberg
plugins (< 16.5) per https://core.trac.wordpress.org/changeset/56820. The
commit added automatic deactivation for plugins set by UI/DB, however,
that doesn't satisfy enterprise use cases where:
- WP Core files are updated through a version control system and then
deployed. So, the actual update process isn't triggered in the usual way,
bypassing the function intended to deactivate incompatible plugins.
- Plugins can be force-enabled directly via code, making the standard
deactivation process ineffective. This poses a risk, especially with the
Gutenberg plugin, as sites might experience fatal errors after a core
update.
The upcoming WP release mandates that users cannot run a Gutenberg version
older ~2 mos. This abrupt timeframe is problematic for those building
extensive integrations on top of Gutenberg.
Unlike previous instances where compatibility issues between Gutenberg and
WP Core were resolved, this release seems to be establishing a stricter
stance, which might hinder many from updating WP core.
Is it possible to fix the below fatal and/or add safeguards to it if an
older version of standalone Gutenberg plugin is present?
`PHP Fatal error: Access level to
Gutenberg_REST_Global_Styles_Controller_6_2::validate_custom_css() must be
protected (as in class WP_REST_Global_Styles_Controller) or weaker in
/../public/wp-content/plugins/gutenberg/lib/compat/wordpress-6.2/class-
gutenberg-rest-global-styles-controller-6-2.php on line 217`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59718>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list