[wp-trac] [WordPress Trac] #55574: WP_REST_Pattern_Directory_Controller::get_items doesn't support array arguments

WordPress Trac noreply at wordpress.org
Tue Apr 19 14:56:55 UTC 2022


#55574: WP_REST_Pattern_Directory_Controller::get_items doesn't support array
arguments
---------------------------+------------------------------
 Reporter:  antonvlasenko  |       Owner:  antonvlasenko
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  REST API       |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  rest-api
---------------------------+------------------------------
Changes (by gziolo):

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


Comment:

 In [changeset:"53218" 53218]:
 {{{
 #!CommitTicketReference repository="" revision="53218"
 REST API: Add array argument to getItems for Pattern Directory endopoint

 Since http://api.wordpress.org/patterns API supports array parameters,
 there is no need to implode slug values inside the
 _register_remote_theme_patterns function.
 Both WP_REST_Pattern_Directory_Controller and
 _register_remote_theme_patternsmust be updated to support array request
 arguments.

 Props antonvlasenko.
 Fixes #55574.
 Follow-up #55505, [53152].
 }}}

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


More information about the wp-trac mailing list