Skip to content

Query Title: Incorrect quotation mark character at the end of the search results title #71854

@sabernhardt

Description

@sabernhardt

Description

Reported by Harshal Kadu on Trac 63991:

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”

Step-by-step reproduction instructions

  1. Go to the search page.
  2. Enter “Kitchen Sink QA Page ” in the search bar (note the space at the end).
  3. Click on the search button.
  4. Observe the title at the top of the results.

Screenshots, screen recording, code snippet

Frontend Screenshot:
https://prnt.sc/HCGCvoa2aKme

Environment info

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)

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions