[wp-trac] [WordPress Trac] #50218: rest_route is not passing query parameters

WordPress Trac noreply at wordpress.org
Thu May 21 15:15:45 UTC 2020


#50218: rest_route is not passing query parameters
-------------------------------------+------------------------------
 Reporter:  masosky                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  REST API                 |     Version:  5.3.1
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => reporter-feedback close
 * component:  General => REST API
 * severity:  blocker => normal


Comment:

 Hi @masosky,

 Thanks for opening a ticket, and welcome to trac!

 I'm not able to replicate, for instance the following URLs return what I'd
 expect.

 {{{
 http://wp-api.test/index.php?rest_route=%2Fwp%2Fv2%2Fposts&_fields=author
 }}}

 {{{
 http://wp-api.test/index.php?rest_route=%2Fwp%2Fv2%2Fposts&author=3
 }}}

 Could you try calling a built in route instead of a WooCommerce route?

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


More information about the wp-trac mailing list