Skip to content
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

Site editor template description displays encoded characters #62335

Closed
itzmekhokan opened this issue Jun 5, 2024 · 0 comments · Fixed by #62336
Closed

Site editor template description displays encoded characters #62335

itzmekhokan opened this issue Jun 5, 2024 · 0 comments · Fixed by #62336
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@itzmekhokan
Copy link
Contributor

Description

When such a page template is displayed in the Site Editor, it displays the page title as part of the template description in the Template panel in the Site Editor Sidebar.
The HTML entities are not decoded, for example, a template for a page called
"Hello World & Hello WP" Would show the description: "Template for Hello World & Hello WP"
For some reason, If the page is only called "&" the description displays as "Template for &".

For more details check ticket - https://core.trac.wordpress.org/ticket/61376

Step-by-step reproduction instructions

  1. Activate a block theme.
  2. Create a new page with the title "Hello World & Hello WP"
  3. Go to Appearance > Editor > Templates.
  4. Select "Add new template". Select Pages, and then select the page you just created.
  5. Open the settings sidebar and the template panel.
  6. The description is in the template panel below the page name, close to the top. Check if & displays correctly

Screenshots, screen recording, code snippet

template-description

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@itzmekhokan itzmekhokan added the [Type] Bug An existing feature does not function as intended label Jun 5, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
1 participant