#42083 closed enhancement (fixed)
Customize: Clean up longstanding annoyances in JS API
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | commit |
Focuses: | Cc: |
Description
There are some annoyances when working with the JS API which aren't present when working with the PHP API. In particular:
- Manually crafting the
content
param for the<li>
container. - Lack of default params for
active=true
andpriority=10
. - Having to create panels, sections, and controls with an
options
object that contains a singleparams
key with the actual object that has the options in it. Why not just passparams
directly? - Inability to specify the
templateId
via param. - Redundantly having to supply an
id
in addition to an instance whenadd
'ing aPanel
,Control
,Notification
, or any other such object that is added toValues
instances.
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
https://github.com/xwp/wordpress-develop/pull/274