Issue with archive title
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 306
- Forks
- 88
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 12
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with inc/views/page_header.php at line 164 and compare its esc_html handling with archive.php calling get_the_archive_title(). Check the linked WordPress reference for the expected archive-title output. Done means the author archive title renders the author name instead of exposing the span markup as text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100