[wp-trac] [WordPress Trac] #38463: WP_REST_Request allow getting a specific param value.

WordPress Trac noreply at wordpress.org
Tue Apr 11 05:46:16 UTC 2017


#38463: WP_REST_Request allow getting a specific param value.
-------------------------------+----------------------
 Reporter:  TimothyBlynJacobs  |       Owner:
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  REST API           |     Version:  4.4
 Severity:  normal             |  Resolution:  wontfix
 Keywords:                     |     Focuses:
-------------------------------+----------------------
Changes (by rmccue):

 * keywords:  close =>
 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 I'm going to close this as a wontfix. While there is definitely a use-case
 for getting specific arguments from one source, it's not something we want
 to encourage. The basic premise of the REST API is that it's resource-
 based, and conflicting data in the URL and body (JSON/POST data) is
 typically an anti-pattern as it indicates that your URL isn't really
 representing the resource. Worst case, you can always name your URL
 argument something different.

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


More information about the wp-trac mailing list