[wp-testers] Export bugs
Dougal Campbell
dougal at gunters.org
Tue May 11 14:09:12 UTC 2010
On May 9 2010 12:33 PM, Walter Jeffries wrote:
> [...]
> Life is not so good in WP Land. A lot of posts and comments were lost.
> Since the import from blogger worked fine I suspect that the problem
> is on the export side. But I did change from 3.0b1 to 3.0b2 between
> those imports so no guarantees.
> [...]
As Glenn Ansley suggested, it might be that the import timed out before
finishing. If that's the case, you can try re-importing the same file
again. The import process will skip over previously imported posts, and
then pick up where it left off. You might even try to determine about
where it stopped, and just save out the missing portion of the export
file, and import that.
> After posting that I found another problem with the exporter in 3.0b2.
> It is stripping my code from posts and modifying other code. Naughty.
> For example, I had:
>
> <center><img
> src="http://SugarMtnFarm.com/blog/uploaded_images2009/PinkPiggyPalace0064w.jpg"
> /><small><i>Foam Insulation Inside Forms</i></small></center>
>
> On exporting WP changed my post to look like this:
>
> <img
> src="http://SugarMtnFarm.com/blog/uploaded_images2009/PinkPiggyPalace0064w.jpg"
> alt="" /><br />
> <em>Foam Insulation Inside Forms</em>
>
> It stripped my HTML center and changed my i (italic) to em. I like i
> better. It also stripped my small tags. This does not give the same
> look to my pages. I want my pictures centered, my subtitles in smaller
> type and italicized. The export should not be stripping code.
>
> Even if center and i are depreciated WP should still not be stripping
> them without permission since it changes the look and content.
> [...]
By default, WordPress attempts to force content to be XHTML-compliant
(and now with movement towards HTML5). In particular, the kses filters
are applied on the 'content_save_pre' filter hook, and this is where the
'center' and 'small' tags are getting stripped. Off the top of my head,
I'm not sure where the 'i' tags are being converted to 'em', maybe in
TinyMCE? You can probably find plugins to override this behavior.
The philosophical discussion around not allowing presentational markup
such as 'center', 'small' tags and 'i' versus 'em' is beyond the scope
of this list. :)
--
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/
http://twitter.com/dougal
http://twitual.com/
More information about the wp-testers
mailing list