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

  1. plescheff
    Posted 2 years 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?


  2. Hal Gatewood
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Reusable Text Blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.