-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decode HTML entities in success notices on the Pages screen #61086
Conversation
Decodes HTML entities in the post and page titles in the success notices when creating a new page and duplicating a post or page via the Site Editor Pages screen.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -35 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
packages/edit-site/src/components/sidebar-edit-mode/page-panels/index.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one.
Flaky tests detected in 84f2457. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8999742592
|
The merge conflicts are too large to save this PR. |
What?
Decodes HTML entities in the post and page titles in the success notices that shows when creating a new page through the Site Editor, and when duplicating a post or page via the Site Editor Pages screen or the block editor.
Note: This meant adding "@wordpress/html-entities" to the
edit-post
package.Partial for #60995
Why?
When a page or post title has HTML entities like
&
in the post title, these success notices displayed the characters as encoded. So&
displayed as&
;.How?
Wrap the titles inside
decodeEntities
https://developer.wordpress.org/block-editor/reference-guides/packages/packages-html-entities/#decodeentitiesTesting Instructions
Screenshots or screencast