[wp-trac] [WordPress Trac] #47489: Emoji are substituted in preformatted blocks

WordPress Trac noreply at wordpress.org
Thu Jun 27 02:01:11 UTC 2019


#47489: Emoji are substituted in preformatted blocks
--------------------------------------+---------------------
 Reporter:  jikamens                  |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.3
Component:  Emoji                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by pento):

 * keywords:   => has-patch has-unit-tests
 * milestone:  Awaiting Review => 5.3


Comment:

 Thank you for the bug report, @jikamens!

 The `convert_smilies()` function is supposed to ignore smilies in `<pre>`
 tags, bug it doesn't work correctly if the tag has attributes on it.

 [attachment:47489.diff] adds support for this case, along with unit tests.

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


More information about the wp-trac mailing list