[wp-trac] [WordPress Trac] #57501: Backport the added query args to Pattern_Directory Controller

WordPress Trac noreply at wordpress.org
Fri Jan 20 14:36:43 UTC 2023


#57501: Backport the added query args to Pattern_Directory Controller
-------------------------------------------------+-------------------------
 Reporter:  ntsekouras                           |       Owner:  ntsekouras
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge has-testing-info needs-testing           |
-------------------------------------------------+-------------------------

Comment (by arrasel403):

 I have tested with Postman and Application password from WP Dashboard:

 1. ✅ I use
 {{{
 /wp-json/wp/v2/pattern-directory/patterns/?per_page=6&page=2
 }}}
  to show 7-12 items from https://wordpress.org/patterns/

  Screenshot from ORG: https://prnt.sc/OJk3KNGldJNc
  Screenshot from API: https://prnt.sc/xywwMcv9qRcZ

 2. ✅ Get the last three items (but in random order). 43551 (Newsletter,
 Subscribe section design with title, description, background image and
 subscribe button), 44504 (footer section design with 3 column description,
 social media, contact and newsletter), 44715 (Purchase, offerd, discount
 section with creative design)
  Screenshot from ORG (last page): https://prnt.sc/AiGT8D7l9rt-
  Screenshot from ORG (second last page): https://prnt.sc/6n31IWsMOyF-

 3. ✅ Get it fixed. Only one item was found "Natural Hero Section"
  Screenshot from API: https://prnt.sc/gNGQz-_z1lFV

 4. ✅ Get it fixed. Get only a single pattern title "Centered text title
 with two columns"
  Screenshot from API: https://prnt.sc/blB18Aw7U9fD

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


More information about the wp-trac mailing list