[wp-hackers] newlines from rich text editor do not convert to paragraphs

Ken Newman Ken at adcSTUDIO.com
Tue Dec 15 16:05:47 UTC 2009


On 12/14/2009 11:00 AM, scribu wrote:
> On Mon, Dec 14, 2009 at 2:32 PM, Davit Barbakadze<jayarjo at gmail.com>  wrote:
>
>    
>> Probably it would have been more logical applying filters attached to
>> 'the_content' hook within get_the_content() function. This way we
>> could get filtered content echoed via the_content() tag, filtered
>> content in a string via get_the_content() and pure content via
>> $post->post_content.
>>
>>      
> You can apply the filter yourself:
>
> $filtered_content = apply_filters('the_content', get_the_post_content());
>
>
>    
Would it be considered good practice do this, say, in child theme's 
function file?


More information about the wp-hackers mailing list