#42083 closed enhancement (fixed)
Customize: Clean up longstanding annoyances in JS API
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
contentparam for the<li>container. - Lack of default params for
active=trueandpriority=10. - Having to create panels, sections, and controls with an
optionsobject that contains a singleparamskey with the actual object that has the options in it. Why not just passparamsdirectly? - Inability to specify the
templateIdvia param. - Redundantly having to supply an
idin addition to an instance whenadd'ing aPanel,Control,Notification, or any other such object that is added toValuesinstances.
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
https://github.com/xwp/wordpress-develop/pull/274