Skip to content

Issue with archive title #4056

Open
Open
@thegulshankumar

Description

@thegulshankumar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.customer reportIndicates the request came from a customer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions