Skip to content

Conversation

@jamesmorrison
Copy link
Member

@jamesmorrison jamesmorrison commented Jul 31, 2025

Description of the Change

In some cases, the supplied post title is already HTML encoded, added a function to split emoji images to only show the emoji icon, not the HTML reported

Closes #205

How to test the Change

  1. Install the plugin through git clone in the wp-content directory: git clone [email protected]:10up/simple-page-ordering.git
  2. Checkout the issue/205-dragging-page-with-emoji-renders-html-in-page-title branch
  3. Install dependencies: composer install; npm install; npm run build;
  4. In test install, activate plugin
  5. Create and publish a page with a title that contains emoji, e.g. "hey there! 👋"
  6. Reorder the menu item with the emoji
  7. Confirm the emoji remains as an emoji; you do not see HTML content

Changelog Entry

Fixed - Resolved issue with emoji showing in page title after reordering

Credits

Props @jamesmorrison

Checklist:

@github-actions github-actions bot added this to the 2.8.0 milestone Jul 31, 2025
@github-actions github-actions bot added the needs:code-review This requires code review. label Jul 31, 2025
@dkotter dkotter merged commit 319b46e into develop Aug 4, 2025
16 checks passed
@dkotter dkotter deleted the issue/205-dragging-page-with-emoji-renders-html-in-page-title branch August 4, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dragging page with emoji renders HTML in page title

2 participants