Changeset 2456068
- Timestamp:
- 01/14/2021 06:13:30 AM (5 years ago)
- Location:
- sigma-importer
- Files:
-
- 4 edited
- 3 copied
-
tags/1.0.2 (copied) (copied from sigma-importer/trunk)
-
tags/1.0.2/includes/wp-importer/class-wp-import.php (modified) (5 diffs)
-
tags/1.0.2/readme.txt (copied) (copied from sigma-importer/trunk/readme.txt) (3 diffs)
-
tags/1.0.2/sigma-importer.php (copied) (copied from sigma-importer/trunk/sigma-importer.php) (1 diff)
-
trunk/includes/wp-importer/class-wp-import.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/sigma-importer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sigma-importer/tags/1.0.2/includes/wp-importer/class-wp-import.php
r2455605 r2456068 37 37 var $url_remap = array(); 38 38 var $featured_images = array(); 39 var $menu_items = array(); 39 40 40 41 var $logger; … … 58 59 'processed_menu_items' => $this->processed_menu_items, 59 60 'menu_item_orphans' => $this->menu_item_orphans, 60 'missing_menu_items' => $this->missing_menu_items 61 'missing_menu_items' => $this->missing_menu_items, 62 'menu_items' => $this->menu_items 61 63 ]; 62 64 … … 134 136 $this->$key(); 135 137 } 138 } 139 } 140 141 // Process menu items 142 if( !empty($this->menu_items) ){ 143 foreach($this->menu_items as $item){ 144 $this->process_menu_item($item); 136 145 } 137 146 } … … 203 212 $this->menu_item_orphans = isset($data['menu_item_orphans']) && !empty($data['menu_item_orphans']) ? $data['menu_item_orphans'] : array(); 204 213 $this->missing_menu_items = isset($data['missing_menu_items']) && !empty($data['missing_menu_items']) ? $data['missing_menu_items'] : array(); 214 $this->menu_items = isset($data['menu_items']) && !empty($data['menu_items']) ? $data['menu_items'] : array(); 205 215 206 216 wp_defer_term_counting( true ); … … 575 585 continue; 576 586 587 // Save the menu items to be imported at the very end 577 588 if ( 'nav_menu_item' == $post['post_type'] ) { 578 $this->process_menu_item( $post ); 589 if( !isset($this->menu_items[ $post['post_id'] ]) ){ 590 $this->menu_items[ $post['post_id'] ] = $post; 591 } 579 592 continue; 580 593 } -
sigma-importer/tags/1.0.2/readme.txt
r2455654 r2456068 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.3.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv3 or later 9 9 … … 38 38 'blog_page' => 'Blog', 39 39 'menus' => array( 40 'main_menu' => 'Main Menu',40 'main_menu' => 'Main Menu', 41 41 'secondary_menu' => 'Secondary Menu', 42 42 'mobile_menu' => 'Mobile Menu', 43 'top_menu'=> 'Top Menu',44 'bottom_menu'=> 'Bottom Menu'43 'top_menu' => 'Top Menu', 44 'bottom_menu' => 'Bottom Menu' 45 45 ), 46 46 'import_file' => YOUR_XML_FILE_PATH, … … 62 62 ` 63 63 64 As for now, the importer only supports local files. If you tried to add remote URL links for your content files, the importer will just ignore them. 64 *As for now, the importer only supports local files. If you tried to add remote URL links for your content files, the importer will just ignore them.* 65 66 **Wanna help us make Sigma Importer better?** 67 68 Get access to the Sigma Importer [GitHub repository](https://github.com/slidethemes/sigma-importer). 69 70 = 1.0.2 = 71 72 *Release Date - January 13, 2021* 73 74 * Fixed a bug where menu items would import twice if the importer took a lot of time. 75 * Updated the readme.txt file to include some helpful actions and filters for developers 76 77 = 1.0.1 = 78 79 *Release Date - January 13, 2021* 80 81 * Updated readme.txt 65 82 66 83 = 1.0.0 = 84 85 * Release Date - January 13, 2021* 86 67 87 * Initial release! -
sigma-importer/tags/1.0.2/sigma-importer.php
r2455654 r2456068 4 4 Plugin URI: https://wordpress.org/plugins/sigma-importer/ 5 5 Description: Import demo content with ease. Whether you are a developer adding one click demo import functionality to your theme, or you just want a quick import solution. This is the plugin for you. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Slidesigma 8 8 Author URI: http://www.slidesigma.com -
sigma-importer/trunk/includes/wp-importer/class-wp-import.php
r2455605 r2456068 37 37 var $url_remap = array(); 38 38 var $featured_images = array(); 39 var $menu_items = array(); 39 40 40 41 var $logger; … … 58 59 'processed_menu_items' => $this->processed_menu_items, 59 60 'menu_item_orphans' => $this->menu_item_orphans, 60 'missing_menu_items' => $this->missing_menu_items 61 'missing_menu_items' => $this->missing_menu_items, 62 'menu_items' => $this->menu_items 61 63 ]; 62 64 … … 134 136 $this->$key(); 135 137 } 138 } 139 } 140 141 // Process menu items 142 if( !empty($this->menu_items) ){ 143 foreach($this->menu_items as $item){ 144 $this->process_menu_item($item); 136 145 } 137 146 } … … 203 212 $this->menu_item_orphans = isset($data['menu_item_orphans']) && !empty($data['menu_item_orphans']) ? $data['menu_item_orphans'] : array(); 204 213 $this->missing_menu_items = isset($data['missing_menu_items']) && !empty($data['missing_menu_items']) ? $data['missing_menu_items'] : array(); 214 $this->menu_items = isset($data['menu_items']) && !empty($data['menu_items']) ? $data['menu_items'] : array(); 205 215 206 216 wp_defer_term_counting( true ); … … 575 585 continue; 576 586 587 // Save the menu items to be imported at the very end 577 588 if ( 'nav_menu_item' == $post['post_type'] ) { 578 $this->process_menu_item( $post ); 589 if( !isset($this->menu_items[ $post['post_id'] ]) ){ 590 $this->menu_items[ $post['post_id'] ] = $post; 591 } 579 592 continue; 580 593 } -
sigma-importer/trunk/readme.txt
r2455654 r2456068 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.3.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv3 or later 9 9 … … 38 38 'blog_page' => 'Blog', 39 39 'menus' => array( 40 'main_menu' => 'Main Menu',40 'main_menu' => 'Main Menu', 41 41 'secondary_menu' => 'Secondary Menu', 42 42 'mobile_menu' => 'Mobile Menu', 43 'top_menu'=> 'Top Menu',44 'bottom_menu'=> 'Bottom Menu'43 'top_menu' => 'Top Menu', 44 'bottom_menu' => 'Bottom Menu' 45 45 ), 46 46 'import_file' => YOUR_XML_FILE_PATH, … … 62 62 ` 63 63 64 As for now, the importer only supports local files. If you tried to add remote URL links for your content files, the importer will just ignore them. 64 *As for now, the importer only supports local files. If you tried to add remote URL links for your content files, the importer will just ignore them.* 65 66 **Wanna help us make Sigma Importer better?** 67 68 Get access to the Sigma Importer [GitHub repository](https://github.com/slidethemes/sigma-importer). 69 70 = 1.0.2 = 71 72 *Release Date - January 13, 2021* 73 74 * Fixed a bug where menu items would import twice if the importer took a lot of time. 75 * Updated the readme.txt file to include some helpful actions and filters for developers 76 77 = 1.0.1 = 78 79 *Release Date - January 13, 2021* 80 81 * Updated readme.txt 65 82 66 83 = 1.0.0 = 84 85 * Release Date - January 13, 2021* 86 67 87 * Initial release! -
sigma-importer/trunk/sigma-importer.php
r2455654 r2456068 4 4 Plugin URI: https://wordpress.org/plugins/sigma-importer/ 5 5 Description: Import demo content with ease. Whether you are a developer adding one click demo import functionality to your theme, or you just want a quick import solution. This is the plugin for you. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Slidesigma 8 8 Author URI: http://www.slidesigma.com
Note: See TracChangeset
for help on using the changeset viewer.