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

WordPress Trac noreply at wordpress.org
Fri Jan 20 13:19:11 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 robinwpdeveloper):

 Using Postman and Application password generated from Dashboard.
 1. ✅ `/wp-json/wp/v2/pattern-directory/patterns/?per_page=6&page=2` shows
 items 7-12 from wordpress.org/patterns/

 org screenshot: https://prnt.sc/wo7aNFafwGRB
 api screenshot: https://d.pr/i/OtvvXk

 2.❌ returns these items: 43551 (Newsletter, Subscribe section design with
 title, description, background image and subscribe button), 44367 (Contact
 us/call action section design with gradient background and title, button),
 44504 (footer section design with 3 column description, social media,
 contact and newsletter)

 Last page: https://prnt.sc/HioAL2jn-lNy
 2nnd last page: https://prnt.sc/zTMFHPfEL6I8

 Seems API returns last, 3rd last and 4th last item (instead of last 3
 items ( = last, 2nd last and 3rd last) ).

 3.✅ Found fixed. only one item "Natural Hero Section"
 api screenshot: https://d.pr/i/ErVjz1

 4.✅ Found single pattern titled "Centered text title with two columns"

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


More information about the wp-trac mailing list