[wp-trac] Re: [WordPress Trac] #7750: the_content()'s hard coded str_replace() should be (re)moved

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 15 20:53:07 GMT 2008


#7750: the_content()'s hard coded str_replace() should be (re)moved
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |        Owner:  anonymous
     Type:  defect        |       Status:  new      
 Priority:  normal        |    Milestone:  2.8      
Component:  Template      |      Version:  2.6.1    
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by Viper007Bond):

 Er, whoops.


 {{{
 function the_content($more_link_text = '(more...)', $stripteaser = 0,
 $more_file = '') {
         $content = get_the_content($more_link_text, $stripteaser,
 $more_file);
         $content = apply_filters('the_content', $content);
         $content = str_replace(']]>', ']]>', $content);
         echo $content;
 }
 }}}

 There we go.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7750#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list