diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
index 6e8e3e270a..897f6e537b 100644
a
|
b
|
function update_core( $from, $to ) { |
1387 | 1387 | // Remove the REST API plugin if its version is Beta 4 or lower. |
1388 | 1388 | _upgrade_440_force_deactivate_incompatible_plugins(); |
1389 | 1389 | |
| 1390 | // Deactive the Gutenberg plugin if its version is 10.7 or earlier. |
| 1391 | _upgrade_580_force_deactivate_incompatible_plugins(); |
| 1392 | |
1390 | 1393 | // Upgrade DB with separate request. |
1391 | 1394 | /** This filter is documented in wp-admin/includes/update-core.php */ |
1392 | 1395 | apply_filters( 'update_feedback', __( 'Upgrading database…' ) ); |
… |
… |
function _upgrade_440_force_deactivate_incompatible_plugins() { |
1662 | 1665 | deactivate_plugins( array( 'rest-api/plugin.php' ), true ); |
1663 | 1666 | } |
1664 | 1667 | } |
| 1668 | |
| 1669 | /** |
| 1670 | * @ignore |
| 1671 | * @since 5.8.0 |
| 1672 | */ |
| 1673 | function _upgrade_580_force_deactivate_incompatible_plugins() { |
| 1674 | if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '10.7', '<=' ) ) { |
| 1675 | deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true ); |
| 1676 | } |
| 1677 | } |