[wp-trac] [WordPress Trac] #45799: Add an optional default parameter for WP_REST_Request::get_param method

WordPress Trac noreply at wordpress.org
Mon Dec 31 20:02:35 UTC 2018


#45799: Add an optional default parameter for WP_REST_Request::get_param method
-------------------------+------------------------------
 Reporter:  ediamin      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  rest-api
-------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 Skip it in what sense? The server/request will apply the default
 automatically.

 In what instances do you know the proper default value for a param, but
 not in the position to notate that default in the schema.

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


More information about the wp-trac mailing list