[wp-trac] [WordPress Trac] #2833: wpautop breaks style and script tags

WordPress Trac noreply at wordpress.org
Tue Sep 13 03:58:37 UTC 2016


#2833: wpautop breaks style and script tags
--------------------------------------------+-----------------------------
 Reporter:  Nazgul                          |       Owner:
     Type:  defect (bug)                    |      Status:  reopened
 Priority:  low                             |   Milestone:  Future Release
Component:  Formatting                      |     Version:  2.0.3
 Severity:  normal                          |  Resolution:
 Keywords:  wpautop has-patch dev-feedback  |     Focuses:
--------------------------------------------+-----------------------------

Comment (by pento):

 [attachment:2833.3.diff] is an experiment with this, it works by
 duplicating `wp_replace_in_html_tags()`, and make it work on tag content,
 too.

 This is could be a lot better.

 Also, needs more unit tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/2833#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list