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

WordPress Trac noreply at wordpress.org
Wed Jul 6 16:18:39 UTC 2022


#56126: Pattern keywords are not passed through from pattern directory
-------------------------------------------------+-------------------------
 Reporter:  ryelle                               |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.0.1
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info fixed-major                       |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53674" 53674]:
 {{{
 #!CommitTicketReference repository="" revision="53674"
 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.

 Follow-up to [51021].

 Props ryelle, TimothyBlynJacobs.
 Merges [53665] to the 5.9 branch.
 See #56126.
 }}}

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


More information about the wp-trac mailing list