WordPress.org

Ready to get started?Download WordPress

Forums

Reusable Text Blocks
[resolved] Why are the_content filters applied inside plugin? (3 posts)

  1. plescheff
    Member
    Posted 7 months ago #

    Plugin version: 1.4.2
    WP version: 3.7.1

    Found another bug in this plugin that is causing some issues in our environment.

    Line 249 in text-blocks.php:
    $content = apply_filters( 'the_content', get_post_field('post_content', $id) );

    This causes all of our custom the_content filters that were added before text-blocks plugin to be executed.

    Was this intentional design choice? I commented this line out for now - seems to work better without that line for us :)

    Any comments?

    http://wordpress.org/plugins/reusable-text-blocks/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 7 months ago #

    This was intentional. It should just run the post_content of your text block through the 'the_content' filter. Let me do some research to see if I'm doing that wrong.

    Thanks for the note.

  3. plescheff
    Member
    Posted 7 months ago #

    Okay, that makes sense. I'm starting to think that your solution is correct. I'll have to work around it some other way. Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.