Make WordPress Core

Ticket #53432: 53432.diff

File 53432.diff, 648 bytes (added by hellofromTonya, 4 years ago)

Adds plugin deactivation on core update when Gutenberg plugin is a version <= 10.7

  • src/wp-admin/includes/update-core.php

    diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
    index 6e8e3e270a..bc052b5ce9 100644
    a b function _upgrade_440_force_deactivate_incompatible_plugins() { 
    16621662                deactivate_plugins( array( 'rest-api/plugin.php' ), true );
    16631663        }
    16641664}
     1665
     1666/**
     1667 * @ignore
     1668 * @since 5.8.0
     1669 */
     1670function _upgrade_580_force_deactivate_incompatible_plugins() {
     1671        if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '10.7', '<=' ) ) {
     1672                deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
     1673        }
     1674}