[wp-trac] [WordPress Trac] #56126: Pattern keywords are not passed through from pattern directory
WordPress Trac
noreply at wordpress.org
Tue Jul 5 16:01:52 UTC 2022
#56126: Pattern keywords are not passed through from pattern directory
-------------------------------------------------+-------------------------
Reporter: ryelle | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0.1
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing has- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"53665" 53665]:
{{{
#!CommitTicketReference repository="" revision="53665"
Block Patterns: Update the value used for keywords.
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 from
a taxonomy to meta value], but the `/wp/v2/pattern-directory/patterns`
endpoint was still pulling from that old value.
The correct property to use for this field is `meta.wpop_keywords`, which
returns a single string with comma-separated keywords.
Props ryelle, TimothyBlynJacobs.
See #56126.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56126#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list