Ticket #6809 (closed defect: worksforme)

Opened 4 months ago

Last modified 2 months ago

SUGGESTED SOLUTION: Wordpress 2.5 get_the_content only works with added wpautop

Reported by: fadingdust Assigned to: anonymous
Priority: high Milestone:
Component: General Version: 2.5
Severity: critical Keywords: get_the_content, wpautop tags
Cc: fadingdust

Description

I've installed Wp2.5 on 4 servers and have consistent behavior:

In the visual editor AND HTML editor:

Hello there wordpress!!

I'm a second line!

In the HTML-source of the /wp-admin/page.php?action=edit&post=25 page:

<p>Hello there wordpress!!</p>
<p>I'm a second line!</p>

In the database:

Hello there wordpress!!

I'm a second line!

In the Post HTML-source:

Hello there wordpress!! I'm a second line!


So my theory is that: a) When I upgraded, wpautop wasn't run on the db b) get_the_content's 'return $output' needs to be 'return wpautop($output)' c) when a post is saved, it's not wpautop'd (or it's doubly wpautop'd ??)

Solution 'b' was effective.

Change History

04/22/08 22:28:47 changed by fadingdust

  • cc set to fadingdust.

04/23/08 01:37:23 changed by DD32

b) get_the_content's 'return $output' needs to be 'return wpautop($output)'

wpautop should be run on the the_content filter, so the $output should be wpautop'd allready.

Does it occur with the Default theme? Does it occur with all plugins disabled?

06/25/08 03:21:55 changed by DD32

  • status changed from new to closed.
  • resolution set to worksforme.

Lack of reporter feedback, Appears to work fine for me and others.

My assumption is that its a corrupted upload of a file (Sepcifically wp-includes/default-filters.php) which does run wpautop over the content