[wp-trac] [WordPress Trac] #28332: remove_filter( 'wpautop' ) not working completely

WordPress Trac noreply at wordpress.org
Thu May 22 11:23:52 UTC 2014


#28332: remove_filter( 'wpautop' ) not working completely
----------------------------+-----------------------------
 Reporter:  RobBash         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:  3.9.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 In my functions.php I call remove_filter( 'the_content', 'wpautop' ).

 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 before the content is displayed in the editor and the double
 line breaks are replaced by <p>-tags, which shouldn't be after the
 remove_filter. I also debugged in that method to make sure the filter is
 removed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28332>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list