PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.4
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.4
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Core/Importer/Import.php +5 -5 3.6.13.4.4 View file →
@@ -60,10 +60,8 @@
60 60 new WPContent( $this->request_params ),
61 61 // new AIContent( $this->request_params ),
62 62 new Finalizer( $this->request_params )
63 63 ];
64 -
65 - $this->runners = apply_filters( 'templately_import_runners', $this->runners, $this->request_params );
66 64 }
67 65
68 66 public function run( $callable = null ): array {
69 67 $data = $this->request_params;
@@ -78,14 +76,16 @@
78 76 $import = [];
79 77
80 78 try{
81 79 if ( $runner->should_run( $data, $imported_data ) ) {
82 - if (!$this->is_key_processed($runner->get_name(), 'runner_start')) {
80 + $progress = $this->get_progress();
81 + if(!in_array($runner->get_name(), $progress)){
83 82 $runner->log( 0 );
84 - $this->mark_key_processed($runner->get_name(), 'runner_start');
83 + $progress[] = $runner->get_name();
84 + $this->update_progress( $progress);
85 85 }
86 86 $import = $runner->import( $data, $imported_data );
87 - $imported_data = array_merge( $imported_data, $import );
87 + $imported_data = array_merge_recursive( $imported_data, $import );
88 88
89 89 if( $runner->get_name() != 'finalize' ) {
90 90 $runner->log( 100 );
91 91 } else {