Opened 2 months ago
Closed 8 weeks ago
#63991 closed defect (bug) (reported-upstream)
Incorrect quotation mark character used at the end of the search results title
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.8.2 |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
Description (last modified by )
In the search results title, the search term is wrapped with quotation marks. However, both the beginning and ending quotation marks are opening quotation marks (“). The ending quote should be a closing quotation mark (”).
Current Rendering:
Search results for: “Kitchen Sink QA Page “
(Opening quote at both ends)
Expected Rendering:
Search results for: “Kitchen Sink QA Page”
Steps to Reproduce:
Go to the search page.
Enter “Kitchen Sink QA Page ” in the search bar.
Click on the search button.
Observe the title at the top of the results.
Prerequisite:
Theme: Twenty Twenty Four and Five
WordPress Version: 6.8.2
System: MacBook Pro, macOS Sequoia Version 15.6
Browser: Chrome Version 140.0.7339.133 (Official Build) (x86_64)
Frontend Screenshot:
https://prnt.sc/HCGCvoa2aKme
Change History (2)
#2
@
8 weeks ago
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
I moved your report to GitHub, if you would like to follow it there:
https://github.com/WordPress/gutenberg/issues/71854
To reproduce the incorrect quotation marks as shown in the screenshot, the search query needs a space at the end.
The block themes (T23, T24 and T25) use the Query Title block, which surrounds the query with plain quotation marks. When that string runs through
wptexturize, the space before the final quotation mark matches the pattern that replaces it with an opening quotation mark.Search results for: “Kitchen Sink QA Page “Trimming spaces, at least on the (right) end, might be reasonable.
rtrim( get_search_query() )To change the Query Title block, please open an issue on GitHub.
https://github.com/WordPress/gutenberg/issues?q=state%3Aopen%20label%3A%22%5BBlock%5D%20Query%20Title%22