PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.1.9
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.1.9
3.8.0 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 All 112 releases
← All changes | includes/Core/Importer/Runners/WPContent.php +1 -4 3.1.10 → 3.1.9 View file →
@@ -142,12 +142,9 @@
142 142 ],
143 143 ];
144 144
145 145 if ( isset( $imported_data['archive_settings'] ) ) {
146 - foreach ($imported_data['archive_settings'] as $key => $archive_settings) {
147 - $args['posts'][ $archive_settings['old_id'] ] = $archive_settings['page_id'];
148 - $args['posts'][ $archive_settings['archive_id'] ] = $archive_settings['page_id'];
149 - }
146 + $args['posts'][ $imported_data['archive_settings']['old_id'] ] = $imported_data['archive_settings']['page_id'];
150 147 }
151 148
152 149 $file = $path . $type . '/' . $type . '.xml';
153 150