[wp-trac] [WordPress Trac] #39636: Smilies not converted when directly followed by punctuation marks

WordPress Trac noreply at wordpress.org
Wed Jan 12 22:48:38 UTC 2022


#39636: Smilies not converted when directly followed by punctuation marks
-------------------------+---------------------
 Reporter:  ourvalley    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.0
Component:  Formatting   |     Version:  4.7.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------
Changes (by costdev):

 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => 6.0


Comment:

 == Reproduction Report

 === Env
 * WordPress: 6.0-alpha-52448-src
 * Chrome 97.0.4692.71
 * Windows 10
 * Theme: Twenty Twenty-Two
 * Block Editor
 * Plugins: None activated

 === Steps to reproduce
 1. Navigate to `Posts > Add New`.
 2. Paste the following as plain text:
 {{{
 This is a test :). It uses smilies :)

 If a smilie has punctuation directly after, it is not converted :(! :(

 The expected behavior would be to look like this:
 :) ! :) ,
 However instead they appear as this
 :)! :),
 }}}
 3. Click "Publish".
 4. Click "View post".
 5. You should see that only 4 of the 8 emoticons will be converted to
 smilies.

 === Results

 Reproduced.

 However, this is actually intended behaviour. The code that does the
 substitution specifically looks for spaces before converting an emoticon
 to a smiley. Therefore, this is not a `defect (bug)`.

 A quick search online suggests that this appears to have been a pain point
 for users for quite some years. For this reason, I'm marking this as an
 `enhancement` and adding it to the `6.0` milestone for visibility and
 discussion.

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


More information about the wp-trac mailing list