[wp-trac] [WordPress Trac] #39634: Customize: Add REST API endpoints for panels, sections, controls, settings, and partials
WordPress Trac
noreply at wordpress.org
Thu Jan 19 01:00:23 UTC 2017
#39634: Customize: Add REST API endpoints for panels, sections, controls, settings,
and partials
-------------------------+-----------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-------------------------+-----------------------
Description changed by westonruter:
Old description:
> In order to make the customizer a REST API-backed application, the
> objects that it uses need to have REST API endpoints. In addition to
> having an endpoint for changesets (#38900), there should be endpoints for
> getting a list of the panels, sections, controls, settings, and partials.
> One immediate benefit for these endpoints will be to allow for the
> objects to be lazy-loaded when needed (#28580) to improve performance.
> This will also facilitate bootstrapping the customizer onto the frontend
> so that customization can be done without going to `customize.php`.
New description:
In order to make the customizer a REST API-backed application, the objects
that it uses need to have REST API endpoints. In addition to having an
endpoint for changesets (#38900), there should be endpoints for getting a
list of the panels, sections, controls, settings, and partials. One
immediate benefit for these endpoints will be to allow for the objects to
be lazy-loaded when needed (#28580) to improve performance. Having schemas
attached to `WP_Customize_Setting` would also allow controls to be
generated automatically with the appropriate validation constraints
(#38845). This will also facilitate bootstrapping the customizer onto the
frontend so that customization can be done without going to
`customize.php`.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39634#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list