| @@ -25,9 +25,8 @@ | ||
| 25 | 25 | use ImportWP\Common\Importer\Template\Template; |
| 26 | 26 | use ImportWP\Common\Importer\Template\TemplateManager; |
| 27 | 27 | use ImportWP\Common\Importer\Template\TermTemplate; |
| 28 | 28 | use ImportWP\Common\Importer\Template\UserTemplate; |
| 29 | -use ImportWP\Common\Migration\Migrations; | |
| 30 | 29 | use ImportWP\Common\Model\ImporterModel; |
| 31 | 30 | use ImportWP\Common\Properties\Properties; |
| 32 | 31 | use ImportWP\Common\Runner\ImporterRunnerState; |
| 33 | 32 | use ImportWP\Common\Util\Logger; |
| @@ -683,18 +682,8 @@ | ||
| 683 | 682 | |
| 684 | 683 | public function import($id, $user, $session = null) |
| 685 | 684 | { |
| 686 | 685 | Logger::timer(); |
| 687 | - | |
| 688 | - // Run pending DB/data migrations before loading importer config so cron, | |
| 689 | - // CLI, and REST imports do not depend on the admin setup wizard. | |
| 690 | - $migrations = new Migrations(); | |
| 691 | - if (!$migrations->isSetup()) { | |
| 692 | - $migrations->migrate(); | |
| 693 | - if ($id instanceof ImporterModel) { | |
| 694 | - $id = $id->getId(); | |
| 695 | - } | |
| 696 | - } | |
| 697 | 686 | |
| 698 | 687 | $importer_data = $this->get_importer($id); |
| 699 | 688 | $importer_id = $importer_data->getId(); |
| 700 | 689 | |