#42083 closed enhancement (fixed)
Customize: Clean up longstanding annoyances in JS API
| Reported by: | westonruter | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Customize | Version: | |
| Severity: | normal | Keywords: | commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
https://github.com/xwp/wordpress-develop/pull/274