[wp-trac] [WordPress Trac] #6809: SUGGESTED SOLUTION: Wordpress 2.5
get_the_content only works with added wpautop
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 22 22:27:24 GMT 2008
#6809: SUGGESTED SOLUTION: Wordpress 2.5 get_the_content only works with added
wpautop
------------------------+---------------------------------------------------
Reporter: fadingdust | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone:
Component: General | Version: 2.5
Severity: critical | Keywords: get_the_content, wpautop tags
------------------------+---------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/6809>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list