[wp-trac] [WordPress Trac] #48798: REST API: Expose editor-color-palette theme support in /themes endpoint

WordPress Trac noreply at wordpress.org
Tue Nov 26 16:56:07 UTC 2019


#48798: REST API: Expose editor-color-palette theme support in /themes endpoint
-------------------------+-----------------------------
 Reporter:  koke         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  rest-api     |
-------------------------+-----------------------------
 In #45016, a new `/themes` endpoint was created to expose some of the
 supported theme features.

 As part of the work in bringing in more features to gutenberg-mobile we'll
 need to access the color palette defined by themes. We are running across
 this in the [https://github.com/wordpress-mobile/gutenberg-
 mobile/issues/1513 Button block] but I imagine it will start coming up in
 more places.

 As a secondary issue, we currently don't have any supported method for
 authentication in the apps (waiting for basic auth in #42790 or the
 efforts in [https://github.com/WP-API/authentication WP-
 API/authentication] to materialize). I'm wondering if it would be OK to
 expose those settings to unauthenticated requests, since it doesn't seem
 like sensitive information, and it's likely publicly available somewhere
 in the theme's CSS.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48798>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list