[wp-trac] [WordPress Trac] #48885: REST API: Add a route to read and update separate site settings

WordPress Trac noreply at wordpress.org
Thu Dec 19 13:11:23 UTC 2019


#48885: REST API: Add a route to read and update separate site settings
--------------------------------------------------+---------------------
 Reporter:  scruffian                             |       Owner:  (none)
     Type:  enhancement                           |      Status:  new
 Priority:  normal                                |   Milestone:  5.4
Component:  REST API                              |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:
PR Number:                                        |
--------------------------------------------------+---------------------

Comment (by scruffian):

 I added a new patch which also takes into account the context parameter.

 This patch assumes that the name of settings in the rest api match the
 values of $show in `get_bloginfo`
 (https://developer.wordpress.org/reference/functions/get_bloginfo/) which
 they do in the cases we have made public so far, but won't for all
 options. Should we add a new key for this mapping?

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


More information about the wp-trac mailing list