Skip to content
Snippets Groups Projects
Commit 62b07e53 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

Pull XML: set the post_type to the default.

parent 72fc6d31
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment