[wp-trac] [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:52:23 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 | Keywords:
--------------------------+-------------------------------------------------
I'm using a `the_content` to add some Javascript to the end of each post.
However I'm having an incredibly difficult time doing it due to how
`the_content()` is hard coded:
`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;
}`
What purpose does it serve? Do we still need it?
If so, it should be moved to a filter so plugins can hook in after it.
--
Ticket URL: <http://trac.wordpress.org/ticket/7750>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list