Skip to content

Commit 1135465

Browse files
ignacioabejarotoniginard
ignacioabejaro
authored andcommitted
Upgraded plugin to version 0.9
1 parent f6ef4ff commit 1135465

14 files changed

+1313
-3094
lines changed

blogger-entry.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
2-
32
/**
4-
* @author Andy Clark
5-
* @copyright 2013
63
* A data object representing the data to be added into Wordpress
74
*/
85

@@ -44,22 +41,23 @@ function import() {
4441
$post_date = $this->published;
4542
$post_content = $this->content;
4643
$post_title = $this->title;
44+
$post_author = $this->author;
4745
$post_status = $this->isDraft ? 'draft' : 'publish';
4846
//AGC:24/10/2013 Turn off the pingbacks
49-
$post_pingback = Blogger_Import::POST_PINGBACK;
47+
$post_pingback = Blogger_Importer::POST_PINGBACK;
5048

5149
// N.B. Clean up of $post_content is now part of the sanitize class
5250
// Check for duplication part of calling function
53-
$post = compact('post_date', 'post_content', 'post_title', 'post_status', 'post_pingback');
51+
$post = compact('post_date', 'post_content', 'post_author', 'post_title', 'post_status', 'post_pingback');
5452

5553
$post_id = wp_insert_post($post);
5654
if (is_wp_error($post_id))
5755
return $post_id;
58-
56+
5957
wp_create_categories(array_map('addslashes', $this->categories), $post_id);
6058

6159
add_post_meta($post_id, 'blogger_blog', $this->blogurl, true);
62-
add_post_meta($post_id, 'blogger_author', $this->author, true);
60+
add_post_meta($post_id, 'blogger_author', $this->bloggerauthor, true);
6361

6462
if (!$this->isDraft && isset($this->bookmark))
6563
add_post_meta($post_id, 'blogger_permalink', $this->bookmark, true);

0 commit comments

Comments
 (0)