Skip to content

Font Library: ensure searching for a font still works even if there is a space in the search field #76866

@annezazu

Description

@annezazu

When using the font library, if you search for an exact name of a font but put a space after it, the search shows no results. We should improve this so that there can be a space without the results not being found. I could replicate this with WordPress 7.0 trunk.

To replicate:

  1. Open font library.
  2. Go to install a new font.
  3. Search for a specific font name and put a space after it.
  4. Notice no results.
  5. Delete the space and notice the font is displayed in the results.
space.in.font.search.mov

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions