marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

the_excerpt filters not being applied #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Apply filters to the the_excerpt filter hook.
2. View a page showing excerpts.

What is the expected output? What do you see instead?

The filters should be applied, they aren't.

What version of the product are you using? On what operating system?

Revision 711.

Please provide any additional information below.

In thematic_content in content_extensions.php, we do:
        $post = get_the_content(more_text());
        $post = apply_filters('the_content', $post);
        $post = str_replace(']]>', ']]>', $post);

But if it's an excerpt we do:
    $post = get_the_excerpt();

We should also do:
    $post = apply_filters('the_excerpt', $post);

Original issue reported on code.google.com by simoneau.louis on 15 Aug 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I've just noticed that the most recent release has a thematic_get_excerpt 
filter ... why use this instead of the built-in WP one? It breaks default 
behavior like wptexturize in excerpts unless you explicitly turn it back on.

Original comment by simoneau.louis on 15 Aug 2010 at 2:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
WThanks for your input. We are using get_the_excerpt in 0.9.7.5

Original comment by eugene.m...@gmail.com on 1 Oct 2010 at 6:39