[wp-trac] [WordPress Trac] #24221: Importer doesn't import properly

WordPress Trac noreply at wordpress.org
Mon Apr 29 12:03:24 UTC 2013


#24221: Importer doesn't import properly
--------------------------+-----------------------------
 Reporter:  Looimaster    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 This is what [Tools > Export] generated:
 {{{
         <item>
                 <title>Example</title>
                 <link>http://example.com/?page_id=4477</link>
                 <pubDate>Sun, 03 Feb 2013 12:10:10 +0000</pubDate>
                 <dc:creator>admin</dc:creator>
                 <guid
 isPermaLink="false">http://example.com/?page_id=4477</guid>
                 <description></description>
                 <content:encoded><![CDATA[something at the beginning

 <div class="container" style="padding: 3em 0 0 0; margin: 0 0 3em 0;
 background-color: rgba(195, 195, 195, 0.15);">
         <h2>Heading</h2>
         <p>Paragraph</p>
 </div>

 something in the end]]></content:encoded>
                 <excerpt:encoded><![CDATA[]]></excerpt:encoded>
                 <wp:post_id>4477</wp:post_id>
                 <wp:post_date>2013-02-03 12:10:10</wp:post_date>
                 <wp:post_date_gmt>2013-02-03 12:10:10</wp:post_date_gmt>
                 <wp:comment_status>closed</wp:comment_status>
                 <wp:ping_status>closed</wp:ping_status>
                 [...]
         </item>
 }}}

 And now, when I try to import that (exactly in unmodified form) it strips

 {{{
 style="padding: 3em 0 0 0; margin: 0 0 3em 0; background-color: rgba(195,
 195, 195, 0.15);"
 }}}

 part in some places but not all (I guess this is important)!

 And it doesn't strip it when I go to [Pages > Example] and switch to
 "Visual" editor or update the page. It is imported this way (already
 wrong).

 I'm absolutely sure that this happens, tested several times and I can't
 find an error or explanation.

 Export file: UNIX, UTF-8 w/o BOM.

 Importer Version: 0.6
 Plugin URL: http://wordpress.org/extend/plugins/wordpress-importer/

 I've seen a couple of issues related to "update_post_meta" that is
 stripping quotation marks etc. Maybe this is related.

 Installation: WPMU (unfiltered_html is probably disabled because it's non-
 super-admin blog).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24221>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list