Skip to content

Turn off the WordPress emoji script - #268

Draft
amjadr360 wants to merge 2 commits into
mainfrom
improvement/disable-wp-emoji
Draft

amjadr360 wants to merge 2 commits into
mainfrom
improvement/disable-wp-emoji

Conversation

@amjadr360

Copy link
Copy Markdown
Contributor

WordPress adds an emoji script to every page. When a browser can't draw an emoji itself, the script swaps in an image from wordpress.org, which sends the visitor's IP there without consent. Modern browsers draw emoji on their own, so this turns the script off, along with the matching styles and the step that turns emoji in RSS feeds and emails into wordpress.org images.

  • The one visible change: flag emoji show as two letters (for example "US") on Windows browsers, which can't draw flags.
  • None of these hooks are on the theme review team's list of things a theme must not remove.

Every front-end and admin page carries WordPress's emoji detection
script. When the browser cannot draw an emoji on the page (flags on
Windows, or a newer emoji on an older system), it swaps the character
for an image from s.w.org, which sends the visitor's IP to a third
party. A privacy review flagged this as needing consent and recommended
that themes disable it.

The suggested one-liner removes only the front-end detection script.
This also removes the admin and embed copies, the emoji styles, and the
feed and email filters that rewrite emoji into s.w.org image tags, so
nothing emoji-related reaches wordpress.org. The admin hooks are added
after init, so the same function also runs on admin_init.

The visible cost: flag emoji show as two letters on Windows browsers.
None of the removed hooks are on the theme review team's list of hooks
a theme must not deregister.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant