Make WordPress Core

Opened 9 hours ago

Last modified 6 hours ago

#62948 new defect (bug)

Posts tagged with complex Emoji can't be found

Reported by: edent's profile edent Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7.2
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

If a post is tagged with 🏳️‍⚧️ - it cannot be found at tag/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%E2%9A%A7%EF%B8%8F

Some simpler emoji *do* work as tags. For example https://shkspr.mobi/blog/tag/😊/

Moderately complex flag emoji also work. For example https://shkspr.mobi/blog/tag/🏴‍☠️/ and https://shkspr.mobi/blog/tag/%f0%9f%8f%b3%ef%b8%8f%f0%9f%8c%88/

My backend database has an encoding of utf8mb4_unicode_520_ci (10.6.20-MariaDB).

Change History (1)

#1 @sainathpoojary
6 hours ago

Hi @edent! Thanks for bringing up the issue. I tried to reproduce the issue with emoji tags but wasn't able to replicate the problem you're experiencing.

I tested the following:

  1. Created test posts with emoji tags including 🏳️‍⚧️, 😊, and 🏴‍☠️
  2. Verified the tags appear correctly on posts
  3. Accessed the tag archive URLs:

/tag/🏳️‍⚧️
/tag/😊
/tag/🏴‍☠️

All URLs worked and showed the tagged posts correctly. Could you share more information like

  1. Are you using any plugins that might affect URL handling or taxonomies?
  2. Does this happen with a default theme like Twenty Twenty-Four?

Additional information would help narrow down what might be different in your setup causing this issue.

Video: https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyO7432pdv9AWOSNT8iuxYqzcvCVIEKbQmF3njP

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.27
  • Server: nginx/1.27.3
  • Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 132.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins: Test Reports 1.2.0
Note: See TracTickets for help on using tickets.