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

WordPress Trac noreply at wordpress.org
Tue Nov 17 14:37:56 UTC 2015


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

 * keywords:  needs-patch => has-patch


Comment:

 34647.1.diff unsets `$args[0]` generated by `preg_match()` when
 `$args[0]===$path`. Includes tests.

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


More information about the wp-trac mailing list