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

WordPress Trac noreply at wordpress.org
Wed Nov 2 07:18:23 UTC 2016


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

 * keywords:  reporter-feedback => close


Comment:

 Replying to [comment:2 TimothyBlynJacobs]:
 > Not exactly, because that follows the parameter order. What I need is to
 be able to get a parameter from a specific location.

 We specifically try to avoid this for a few reasons: namely, a JSON or
 URL-encoded POST body could be used for data, and we need to handle those
 equally, and defaults are applied by having those at the bottom of the
 stack.

 This is intentional behaviour. The parameters are still available, but
 it's just a little tougher to access them to encourage using the stack. I
 could be missing something though. :)

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


More information about the wp-trac mailing list