From 62b07e535a0fa682046fcb68b247a254a1180c92 Mon Sep 17 00:00:00 2001 From: Mohammad Jangda <batmoo@gmail.com> Date: Wed, 3 Apr 2013 22:51:13 -0400 Subject: [PATCH] Pull XML: set the post_type to the default. --- includes/class-syndication-wp-xml-client.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-syndication-wp-xml-client.php b/includes/class-syndication-wp-xml-client.php index a8d5ac1..2cc4562 100644 --- a/includes/class-syndication-wp-xml-client.php +++ b/includes/class-syndication-wp-xml-client.php @@ -196,6 +196,8 @@ class Syndication_WP_XML_Client implements Syndication_Client { $tax_data = array(); $value_array = array(); + $item_fields['post_type'] = $this->default_post_type; + //save photos as enclosures in meta if ((isset($enc_parent) && strlen($enc_parent)) && ! empty( $enc_nodes )) : $meta_data['enclosures'] = $this->get_encs($item->xpath($enc_parent), $enc_nodes); -- GitLab