Changeset 51180
- Timestamp:
- 06/18/2021 12:12:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r51134 r51180 1385 1385 _upgrade_422_remove_genericons(); 1386 1386 1387 // Remove the REST API plugin if its version isBeta 4 or lower.1387 // Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower. 1388 1388 _upgrade_440_force_deactivate_incompatible_plugins(); 1389 1390 // Deactivate the Gutenberg plugin if its version is 10.7 or lower. 1391 _upgrade_580_force_deactivate_incompatible_plugins(); 1389 1392 1390 1393 // Upgrade DB with separate request. … … 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 }
Note: See TracChangeset
for help on using the changeset viewer.