Make WordPress Core

Changeset 57384


Ignore:
Timestamp:
01/30/2024 11:39:14 AM (9 months ago)
Author:
youknowriad
Message:

Editor: Update the minimum compatible version of Gutenberg.

Previous Gutenberg versions are not compatible with recent trunk because of the
WP_Navigation_Block_Renderer classname. It's present in both.

Gutenberg has been updated to avoid the use of this class but we need to auto-disable
old plugins to avoid fatals.

Props hellofromtonya.
See #60315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r57239 r57384  
    18491849 * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
    18501850 * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
     1851 * @since 6.5.0 The minimum compatible version of Gutenberg is 17.6.
    18511852 */
    18521853function _upgrade_core_deactivate_incompatible_plugins() {
    1853     if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '16.5', '<' ) ) {
     1854    if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.6', '<' ) ) {
    18541855        $deactivated_gutenberg['gutenberg'] = array(
    18551856            'plugin_name'         => 'Gutenberg',
    18561857            'version_deactivated' => GUTENBERG_VERSION,
    1857             'version_compatible'  => '16.5',
     1858            'version_compatible'  => '17.6',
    18581859        );
    18591860        if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
Note: See TracChangeset for help on using the changeset viewer.