neve icon indicating copy to clipboard operation
neve copied to clipboard

Issue with archive title

Open thegulshankumar opened this issue 2 years ago • 0 comments

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. (https://github.com/Codeinwp/neve/blob/b2ef6545be3ff498317e351070429f317c5473ff/inc/views/page_header.php#L164) 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 avatar Aug 01 '23 04:08 thegulshankumar