(int)er the dragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -546,7 +546,7 @@ class Blogger_Import {
|
||||
}
|
||||
}
|
||||
|
||||
$comment_post_ID = $this->blogs[$importing_blog]['posts'][$entry->old_post_permalink];
|
||||
$comment_post_ID = (int) $this->blogs[$importing_blog]['posts'][$entry->old_post_permalink];
|
||||
preg_match('#<name>(.+?)</name>.*(?:\<uri>(.+?)</uri>)?#', $entry->author, $matches);
|
||||
$comment_author = addslashes( $this->no_apos( strip_tags( (string) $matches[1] ) ) );
|
||||
$comment_author_url = addslashes( $this->no_apos( strip_tags( (string) $matches[2] ) ) );
|
||||
|
||||
@@ -104,7 +104,7 @@ class BW_Import {
|
||||
$comments = $comments[1];
|
||||
|
||||
if ( $comments ) {
|
||||
$comment_post_ID = $post_id;
|
||||
$comment_post_ID = (int) $post_id;
|
||||
$num_comments = 0;
|
||||
foreach ($comments as $comment) {
|
||||
preg_match('|<body>(.*?)</body>|is', $comment, $comment_content);
|
||||
|
||||
@@ -437,8 +437,8 @@ class Dotclear_Import {
|
||||
extract($comment);
|
||||
|
||||
// WordPressify Data
|
||||
$comment_ID = ltrim($comment_id, '0');
|
||||
$comment_post_ID = $postarr[$post_id];
|
||||
$comment_ID = (int) ltrim($comment_id, '0');
|
||||
$comment_post_ID = (int) $postarr[$post_id];
|
||||
$comment_approved = "$comment_pub";
|
||||
$name = $wpdb->escape(csc ($comment_auteur));
|
||||
$email = $wpdb->escape($comment_email);
|
||||
|
||||
@@ -82,7 +82,7 @@ class LJ_Import {
|
||||
$comments = $comments[1];
|
||||
|
||||
if ( $comments ) {
|
||||
$comment_post_ID = $post_id;
|
||||
$comment_post_ID = (int) $post_id;
|
||||
$num_comments = 0;
|
||||
foreach ($comments as $comment) {
|
||||
preg_match('|<event>(.*?)</event>|is', $comment, $comment_content);
|
||||
|
||||
@@ -171,7 +171,7 @@ class MT_Import {
|
||||
return;
|
||||
}
|
||||
$this->file = $file['file'];
|
||||
$this->id = $file['id'];
|
||||
$this->id = (int) $file['id'];
|
||||
|
||||
$this->get_entries();
|
||||
$this->mt_authors_form();
|
||||
@@ -295,7 +295,7 @@ class MT_Import {
|
||||
}
|
||||
}
|
||||
|
||||
$comment_post_ID = $post_id;
|
||||
$comment_post_ID = (int) $post_id;
|
||||
$comment_approved = 1;
|
||||
|
||||
// Now for comments
|
||||
|
||||
@@ -174,7 +174,7 @@ class WP_Import {
|
||||
return;
|
||||
}
|
||||
$this->file = $file['file'];
|
||||
$this->id = $file['id'];
|
||||
$this->id = (int) $file['id'];
|
||||
|
||||
$this->get_entries();
|
||||
$this->wp_authors_form();
|
||||
|
||||
Reference in New Issue
Block a user