Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4815 closed defect (bug) (fixed)

TypePad Imported entries always end with <!--more-->

Reported by: foolswisdom's profile foolswisdom Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: has-patch
Focuses: Cc:

Description (last modified by foolswisdom)

TypePad Imported entries always end with <!--more-->

ENV: WP trunk r5939

This week I received a TypePad export, and each entry includes the common:

-----
EXTENDED BODY:

-----

This results in each entry being imported with a <!--more--> at the end.

ADDITIONAL DETAILS

$post->extended is a single space ' ', and wp-admin/import/mt.php line 213:

	if ( '' != $post->extended )
		$post->post_content .= "\n<!--more-->\n$post->extended";

The WordPress 2.2.x code firsts trims the whitespace before the comparison.

Attachments (2)

typepad-import-always-more.txt (307 bytes) - added by foolswisdom 17 years ago.
Trivial example
4815.diff (593 bytes) - added by Nazgul 17 years ago.

Download all attachments as: .zip

Change History (5)

@foolswisdom
17 years ago

Trivial example

#1 @foolswisdom
17 years ago

  • Description modified (diff)

@Nazgul
17 years ago

#2 @Nazgul
17 years ago

  • Keywords has-patch added

#3 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5948]) Trim before comparison. Props foolswisdom and Nazgul. fixes #4815

Note: See TracTickets for help on using tickets.