[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 17:11:15 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):
What is the use case for a default value that you wouldn't want to provide
by using the JSON Schema `default` syntax which will automatically fill in
a missing value with the default.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45799#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list