Changeset 35582
- Timestamp:
- 11/09/2015 01:21:29 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r35277 r35582 729 729 'themes/twentyfourteen/' => '3.8', 730 730 'themes/twentyfifteen/' => '4.1', 731 'themes/twentysixteen/' => '4.4', 731 732 ); 732 733 … … 1073 1074 _upgrade_422_remove_genericons(); 1074 1075 1076 // Remove the REST API plugin if its version is Beta 4 or lower 1077 _upgrade_440_force_deactivate_incompatible_plugins(); 1078 1075 1079 // Upgrade DB with separate request 1076 1080 /** This filter is documented in wp-admin/includes/update-core.php */ … … 1287 1291 return $files; 1288 1292 } 1293 1294 /** 1295 * @ignore 1296 * @since 4.4.0 1297 */ 1298 function _upgrade_440_force_deactivate_incompatible_plugins() { 1299 if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) { 1300 deactivate_plugins( array( 'rest-api/plugin.php' ), true ); 1301 } 1302 }
Note: See TracChangeset
for help on using the changeset viewer.