[wp-trac] [WordPress Trac] #63991: Incorrect quotation mark character used at the end of the search results title
WordPress Trac
noreply at wordpress.org
Wed Sep 17 08:41:10 UTC 2025
#63991: Incorrect quotation mark character used at the end of the search results
title
--------------------------+------------------------------
Reporter: harshalkadu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Editor
Old description:
> 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
New description:
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
--
Comment:
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
[https://github.com/WordPress/gutenberg/blob/86c423a895d2e6a51d121403f40e93b505e3a04a/packages
/block-library/src/query-title/index.php#L49-L53 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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63991#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list