[wp-trac] [WordPress Trac] #56126: Pattern keywords are not passed through from pattern directory

WordPress Trac noreply at wordpress.org
Fri Jul 1 17:35:40 UTC 2022


#56126: Pattern keywords are not passed through from pattern directory
--------------------------+-----------------------------
 Reporter:  ryelle        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Patterns on the [https://wordpress.org/patterns/ Pattern Directory] can
 have keywords for better discoverability while searching. The way these
 are stored [https://github.com/WordPress/pattern-
 directory/commit/69548ff1f0326c4fd4d9ea7390c48b6d9d227055 was changed],
 but the `/wp/v2/pattern-directory/patterns` endpoint is still pulling from
 that old value.

 The result is that patterns loaded remotely are not registered with any
 keywords.

 **To reproduce**

 - Use a theme with a `theme.json`
 - Add `heading-large-text-and-link` to the `patterns` list
 ([https://github.com/WordPress/gutenberg/blob/1050cfd8eb8b7b6a38610940992710700b93a33c/test/emptytheme/theme.json#L10
 example])
 - That pattern has the keyword "big text"
 - Open the editor, open the inserter
 - Try searching for "big text"
 - No results, when it should show the "Heading, large text, and link"
 pattern

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56126>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list