Changeset 12752 for trunk/wp-admin/import/blogware.php
- Timestamp:
- 01/18/2010 08:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogware.php
r12104 r12752 63 63 preg_match('|<item type=\"(.*?)\">|is', $post, $post_type); 64 64 $post_type = $post_type[1]; 65 if ($post_type == "photo") {65 if ($post_type == "photo") { 66 66 preg_match('|<photoFilename>(.*?)</photoFilename>|is', $post, $post_title); 67 67 } else { … … 83 83 } 84 84 85 if (strcasecmp($post_type, "photo") === 0) {85 if (strcasecmp($post_type, "photo") === 0) { 86 86 preg_match('|<sizedPhotoUrl>(.*?)</sizedPhotoUrl>|is', $post, $post_content); 87 87 $post_content = '<img src="'.trim($post_content[1]).'" />'; … … 118 118 break; 119 119 } 120 if (0 != count($categories))120 if (0 != count($categories)) 121 121 wp_create_categories($categories, $post_id); 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.