Make WordPress Core

Changeset 56820


Ignore:
Timestamp:
10/10/2023 03:05:34 PM (14 months ago)
Author:
hellofromTonya
Message:

Update/Install: Deactivate Gutenberg plugin version older than 16.5.

This commit changes the Gutenberg minimum compatible version number from 14.1 (introduced in [54790]) to 16.5. For versions older than 16.5, the plugin will deactivate when upgrading WordPress to 6.4-beta3 or newer.

Changes are done within Core's _upgrade_core_deactivate_incompatible_plugins() which is invoked during WordPress' upgrade process.

Follow-up to [54790].

Props hellofromTonya, spacedmonkey.
Fixes #59584.

File:
1 edited

Legend:

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

    r56793 r56820  
    18461846 * @since 5.9.0 The minimum compatible version of Gutenberg is 11.9.
    18471847 * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
     1848 * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
    18481849 */
    18491850function _upgrade_core_deactivate_incompatible_plugins() {
    1850     if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '14.1', '<' ) ) {
     1851    if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '16.5', '<' ) ) {
    18511852        $deactivated_gutenberg['gutenberg'] = array(
    18521853            'plugin_name'         => 'Gutenberg',
    18531854            'version_deactivated' => GUTENBERG_VERSION,
    1854             'version_compatible'  => '14.1',
     1855            'version_compatible'  => '16.5',
    18551856        );
    18561857        if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
Note: See TracChangeset for help on using the changeset viewer.