[wp-trac] [WordPress Trac] #34647: Don't return route URL in WP_REST_Request:get_params()

WordPress Trac noreply at wordpress.org
Wed Nov 18 07:23:40 UTC 2015


#34647: Don't return route URL in WP_REST_Request:get_params()
-----------------------------+---------------------
 Reporter:  danielbachhuber  |       Owner:  rmccue
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.4
Component:  REST API         |     Version:  trunk
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+---------------------
Changes (by rmccue):

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


Comment:

 In [changeset:"35659"]:
 {{{
 #!CommitTicketReference repository="" revision="35659"
 REST API: Remove redundant "0" parameter.

 This is just an artifact of how we parse the URL, and is already available
 via $request->get_route()

 Props danielbachhuber.
 Fixes #34647.
 }}}

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


More information about the wp-trac mailing list