Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #63991


Ignore:
Timestamp:
09/17/2025 08:41:10 AM (3 months ago)
Author:
sabernhardt
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 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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63991

    • Property Component changed from General to Editor
  • Ticket #63991 – Description

    initial v1  
    22
    33Current Rendering:
    4 Search results for: “Kitchen Sink QA Page
     4Search results for: “Kitchen Sink QA Page 
    55(Opening quote at both ends)
    66
     
    1010Steps to Reproduce:
    1111Go to the search page.
    12 Enter “Kitchen Sink QA Page” in the search bar.
     12Enter “Kitchen Sink QA Page ” in the search bar.
    1313Click on the search button.
    1414Observe the title at the top of the results.