• Hello,

    in my functions.php I call remove_filter( 'the_content' ). I set up a theme with Bootstrap and wanted to use wells, but also for several paragraphs. To do so I just use double line break (shift + return) instead of new paragraph (return). (https://www.bootply.com/MQ5a6CN8Kp)

    After saving the output on the blog is correct so it must be stored correctly in the database, but in the editor (tinymce) it is not. I also installed the plugin TinyMCE Advanced the prevent cleanup by the editor.

    I investigated the issue a bit and found out that the wpautop method is still called and the double line breaks are replaced by <p>tags.

    For now I put a condition at the beginning of the method so that the content is not modified if the filter is removed. But these changes are gone with the next update.

    Is this a bug and should I report is?
    I the another way to keep the code “uncleaned”?

    Cheers

  • The topic ‘remove_filter( 'wpautop' ) not working completely’ is closed to new replies.