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

WordPress Trac noreply at wordpress.org
Tue Jan 24 16:52:57 UTC 2023


#57501: Backport the added query args to Pattern_Directory Controller
-------------------------------------------------+-------------------------
 Reporter:  ntsekouras                           |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge has-testing-info commit                  |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55132" 55132]:
 {{{
 #!CommitTicketReference repository="" revision="55132"
 Editor: Adds pagination and ordering support to
 `WP_REST_Pattern_Directory_Controller`.

 Adds pagination and ordering support to
 `WP_REST_Pattern_Directory_Controller` by allow listing `'per_page'`,
 `'page'`, `'offset'`, `'order'`, and `'orderby'` query parameters. This
 change enables pagination and ordering features in the pattern directory
 explorer by using the same sort as wordpress.org/patterns.

 Reference:
 * [https://github.com/WordPress/gutenberg/pull/45293 Gutenberg PR 45293]

 Follow-up to [55098], [51206], [51021].

 Props ntsekouras, ryelle, arrasel403, hellofromTonya, ironprogrammer,
 mukesh27, robinwpdeveloper.
 Fixes #57501.
 }}}

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


More information about the wp-trac mailing list