← All changes
|
app/src/Database/UpdateMigrationServiceProvider.php
+0
-18
4.5.0
→
2.25.2
View file →
| @@ -41,26 +41,8 @@ | ||
| 41 | 41 | // make sure to check for and create cart post on every update. |
| 42 | 42 | \SureCart::page_seeder()->createShopPage(); |
| 43 | 43 | // make sure to check for and create cart post on every update. |
| 44 | 44 | $this->handleCartMigration(); |
| 45 | - // handle order bump design migration. | |
| 46 | - $this->handleOrderBumpDesignMigration(); | |
| 47 | - } | |
| 48 | - | |
| 49 | - /** | |
| 50 | - * Set classic order bump design for existing installs. | |
| 51 | - * | |
| 52 | - * Fresh installs have migration_version = '0.0.0' at this point because | |
| 53 | - * updateMigrationVersion() runs at priority 9999999, after this. | |
| 54 | - * add_option() is a no-op if the option already exists (idempotent). | |
| 55 | - * | |
| 56 | - * @return void | |
| 57 | - */ | |
| 58 | - public function handleOrderBumpDesignMigration() { | |
| 59 | - $previous_version = get_option( 'surecart_migration_version', '0.0.0' ); | |
| 60 | - if ( '0.0.0' !== $previous_version ) { | |
| 61 | - add_option( 'surecart_order_bump_design', 'classic' ); | |
| 62 | - } | |
| 63 | 45 | } |
| 64 | 46 | |
| 65 | 47 | /** |
| 66 | 48 | * Update the migration version. |