[wp-trac] [WordPress Trac] #54530: Don't print the emoji-detection script

WordPress Trac noreply at wordpress.org
Mon Nov 29 08:04:40 UTC 2021


#54530: Don't print the emoji-detection script
-------------------------+------------------------------
 Reporter:  aristath     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Emoji        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Description changed by aristath:

Old description:

> The emoji-detection script is currently added on all pages in WP. That
> script was added for backwards-compatibility with browsers that (at the
> time) did not support emojis.
> All browsers currently supported by WP have supported emojis for years so
> the script is no longer needed.I propose we remove the script hooks - but
> leave the scripts themselves for a while in core. This way if a
> plugin/theme explicitly needs to support a 15-year-old browser, they can
> manually re-add the hooks.
> Alternatively, we could completely remove the scripts and all
> accompanying logic, and release them in the form of a plugin that can be
> installed and activated.

New description:

 The emoji-detection script is currently added on all pages in WP. That
 script was added for backwards-compatibility with browsers that (at the
 time) did not support emojis.
 All browsers currently supported by WP have supported emojis for years so
 the script is no longer needed.I propose we remove the script hooks - but
 leave the scripts themselves for a while in core. This way if a
 plugin/theme explicitly needs to support a 15-year-old browser, they can
 manually re-add the hooks.
 Alternatively, we could completely remove the scripts and all accompanying
 logic, and release them in the form of a plugin that can be installed and
 activated.

 Note: This is already done in Gutenberg (see
 https://github.com/WordPress/gutenberg/pull/36765), so the attached PR
 does the same but on a wider scale.

--

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


More information about the wp-trac mailing list