[wp-trac] [WordPress Trac] #38490: Add settings to the `/wp/v2/settings` endpoint that are in the WordPress.com api

WordPress Trac noreply at wordpress.org
Fri Nov 4 03:24:41 UTC 2016


#38490: Add settings to the `/wp/v2/settings` endpoint that are in the
WordPress.com api
-----------------------------------------+-----------------------
 Reporter:  joehoyle                     |       Owner:  joehoyle
     Type:  task (blessed)               |      Status:  assigned
 Priority:  normal                       |   Milestone:  4.7
Component:  REST API                     |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+-----------------------

Comment (by jnylen0):

 > if it's it's read-only it shouldn't have an argument

 These special settings should still show up in the arguments list for
 `GET`, and right now in trunk they don't.  `38490.4.diff` is a more
 minimal change that does not add the `readonly` property to the arguments
 list.

 I guess this is fine, since settings marked as readonly show up in
 arguments for `GET` but not `POST/PUT/PATCH`.

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


More information about the wp-trac mailing list