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

Issue with archive title #4056

Open
thegulshankumar opened this issue Aug 1, 2023 · 0 comments
Open

Issue with archive title #4056

thegulshankumar opened this issue Aug 1, 2023 · 0 comments
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.

Comments

@thegulshankumar
Copy link

Description

When I have a child theme archive.php file contains this code
The author print as (HTML goes encoded and I see span tag directly on the screen at frontend)
Gulshan

After debugging further, I realized that problem originate due to [esc_html] used in theme file. (

return esc_html( $title );
) function used here

It seems uneccessary. Here's how I expect
https://developer.wordpress.org/reference/functions/get_the_archive_title/#comment-1807

When I remove the esc_html in the theme file, I can see the author name properly.

Can you make such changes or suggest any better way to handle this case?
Thanks

Step-by-step reproduction instructions

.

Screenshots, screen recording, code snippet or Help Scout ticket

.

Environment info

.

Is the issue you are reporting a regression

No

@thegulshankumar thegulshankumar added the bug This label could be used to identify issues that are caused by a defect in the product. label Aug 1, 2023
@cristian-ungureanu cristian-ungureanu added the customer report Indicates the request came from a customer. label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.
Projects
None yet
Development

No branches or pull requests

2 participants