#44916 closed defect (bug) (wontfix)
Add escape in walker nav menu title
| Reported by: | anonymized_13528887 | Owned by: | welcher |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | has-patch needs-unit-tests close |
| Cc: | Focuses: |
Description
Escape walker nav menu title after applying filter
Attachments (2)
Change History (9)
#1
@
8 years ago
- Keywords 2nd-opinion added
- Summary Escape walker nav menu title → Add escape in walker nav menu title
#3
@
7 years ago
- Keywords needs-unit-tests added; 2nd-opinion removed
- Owner set to
- Status new → assigned
@harshall I've updated the patch against latest trunk and modified it to use late escaping as well.
It can probably do with some unit tests.
#5
@
7 years ago
- Keywords close added
- Milestone 5.2.2 → Awaiting Review
Historically, HTML is allowed in titles, see discussions in #4789, #14361, #22436.
Markup is allowed in post titles and it gets sanitized by KSES, meaning users without the unfiltered_html capability are limited to tags such as <strong>, <em>, and a few others.
If we do decide to reconsider this, there are multiple places where titles are not escaped, but at least Walker_Page should be updated for consistency.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @harshall, welcome to WordPress Trac! Thanks for the ticket.
i have check other instance of menu title but escape is not added in menu title.