-
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
Page creation and duplication: Decode HTML entities in success notices #62313
Conversation
Size Change: +21 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Adds ´@wordpress/html-entities´ to the edit post package.
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. |
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.
Looks good ✅
Shall we backport this for WP 6.6? Please add the |
I added the backport label since the issue doesn't exist in WP 6.5. |
WordPress#62313) * Decode the page title when creating a new page from the Site Editor > Pages * Decode the page title when a page is duplicated from the Data Views * Decode the page title when you duplicate an item in the Edit Site > Editor component * Decode the page title when a page or post is duplicated from the block editor * Add ´@wordpress/html-entities´ to the edit post package. Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
I manually cherry picked for 6.6 this because there were conflicts. |
#62313) * Decode the page title when creating a new page from the Site Editor > Pages * Decode the page title when a page is duplicated from the Data Views * Decode the page title when you duplicate an item in the Edit Site > Editor component * Decode the page title when a page or post is duplicated from the block editor * Add ´@wordpress/html-entities´ to the edit post package. Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
#62313) * Decode the page title when creating a new page from the Site Editor > Pages * Decode the page title when a page is duplicated from the Data Views * Decode the page title when you duplicate an item in the Edit Site > Editor component * Decode the page title when a page or post is duplicated from the block editor * Add ´@wordpress/html-entities´ to the edit post package. Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
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
Replaces #61086
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