[wp-trac] [WordPress Trac] #44278: Smileys got rendered inside pre/code tags in case html attributes are added to the tag

WordPress Trac noreply at wordpress.org
Wed May 30 16:07:34 UTC 2018


#44278: Smileys got rendered inside pre/code tags in case html attributes are added
to the tag
-------------------------------------------------+-------------------------
 Reporter:  Andi Dittrich                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by Andi Dittrich):

 the old ticket adds the generic functionality to exclude pre/code tags
 from convert_smilies.
 but it uses a weak regex which didn't handle html attributes on these
 tags.

 this patch fixes the feature introduced in #16448 by modifying the regex

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


More information about the wp-trac mailing list