[wp-trac] [WordPress Trac] #42382: REST API: Handle api-request query parameters with plain permalinks

WordPress Trac noreply at wordpress.org
Mon Apr 9 13:09:43 UTC 2018


#42382: REST API: Handle api-request query parameters with plain permalinks
-----------------------------------+------------------------------
 Reporter:  aduth                  |       Owner:  adamsilverstein
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  5.0
Component:  REST API               |     Version:  4.9
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  commit has-unit-tests  |     Focuses:  javascript
-----------------------------------+------------------------------
Changes (by adamsilverstein):

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


Comment:

 In [changeset:"42965"]:
 {{{
 #!CommitTicketReference repository="" revision="42965"
 REST API: Handle api-request query parameters with plain permalinks.

 When constructing the request URL, ensure that  `?` is replaced with `&`
 when the API root  already contains a `?`. Fixes an issue where requests
 were broken when sites had permalinks set to plain.

 Props aduth.
 Fixes #42382.
 }}}

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


More information about the wp-trac mailing list